Interface ScriptResource
-
- All Known Implementing Classes:
StringScriptResource
@ProviderType public interface ScriptResource
Defines a script resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Gets the name (path) of the resourcejava.io.Reader
getReader()
Opens a reader to this resourcelong
getSize()
Returns the size of this resource
-
-
-
Method Detail
-
getName
@Nonnull java.lang.String getName()
Gets the name (path) of the resource- Returns:
- the name
-
getReader
@Nonnull java.io.Reader getReader() throws java.io.IOException
Opens a reader to this resource- Returns:
- an open reader
- Throws:
java.io.IOException
- if an error occurs
-
getSize
long getSize()
Returns the size of this resource- Returns:
- the size or -1 if not known
-
-