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