scriptella.spi
Interface Resource

All Known Implementing Classes:
ContentEl, FallbackEl, IncludeEl, StringResource

public interface Resource

Represents reference to a text resource capable of creating new readers.

Version:
1.0
Author:
Fyodor Kupolov

Method Summary
 java.io.Reader open()
          Opens a resource and returns a content reader.
 java.lang.String toString()
           
 

Method Detail

open

java.io.Reader open()
                    throws java.io.IOException
Opens a resource and returns a content reader.

The returned reader implementation should be effective enough to allow usage without extra buffering, etc.

Returns:
resource content reader
Throws:
java.io.IOException - if I/O error occurs.

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
location of content or meaningful description.


Copyright © Copyright 2006-2009 The Scriptella Project Team.