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 StringgetName()Gets the name (path) of the resourceReadergetReader()Opens a reader to this resourcelonggetSize()Returns the size of this resource
-
-
-
Method Detail
-
getReader
@Nonnull Reader getReader() throws IOException
Opens a reader to this resource- Returns:
- an open reader
- Throws:
IOException- if an error occurs
-
getSize
long getSize()
Returns the size of this resource- Returns:
- the size or -1 if not known
-
-