public final class ScriptNameAwareReader extends java.io.FilterReader implements ScriptNameAware
ScriptNameAwareReader
is a FilterReader
marked with the ScriptNameAware
interface. This reader allows
retrieving the contained script's name.Constructor and Description |
---|
ScriptNameAwareReader(java.io.Reader in,
java.lang.String scriptName)
Creates a
ScriptNameAwareReader based on another Reader . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getScriptName()
Returns the name of the script provided by a marked
Reader implementation. |
public ScriptNameAwareReader(java.io.Reader in, java.lang.String scriptName)
ScriptNameAwareReader
based on another Reader
.in
- the base Reader
scriptName
- the script's namepublic java.lang.String getScriptName()
ScriptNameAware
Reader
implementation.getScriptName
in interface ScriptNameAware
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"