public class StringScriptResource extends Object implements ScriptResource
ScriptResource based on strings.| Constructor and Description |
|---|
StringScriptResource(String source,
String name)
Creates a simple script resource based on a string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name (path) of the resource
|
Reader |
getReader()
Opens a reader to this resource
|
long |
getSize()
Returns the size of this resource
|
public String getName()
getName in interface ScriptResourcepublic Reader getReader() throws IOException
getReader in interface ScriptResourceIOException - if an error occurspublic long getSize()
getSize in interface ScriptResourceCopyright © 2010 - 2020 Adobe. All Rights Reserved