Package org.apache.sling.scripting.core
Class ScriptNameAwareReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- org.apache.sling.scripting.core.ScriptNameAwareReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
,org.apache.sling.scripting.api.ScriptNameAware
public final class ScriptNameAwareReader extends FilterReader implements org.apache.sling.scripting.api.ScriptNameAware
TheScriptNameAwareReader
is aFilterReader
marked with theScriptNameAware
interface. This reader allows retrieving the contained script's name.
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description ScriptNameAwareReader(Reader in, String scriptName)
Creates aScriptNameAwareReader
based on anotherReader
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getScriptName()
-
Methods inherited from class java.io.FilterReader
close, mark, markSupported, read, read, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Method Detail
-
getScriptName
public String getScriptName()
- Specified by:
getScriptName
in interfaceorg.apache.sling.scripting.api.ScriptNameAware
-
-