Class ScriptNameAwareReader

java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.sling.scripting.core.ScriptNameAwareReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable, ScriptNameAware

public final class ScriptNameAwareReader extends FilterReader implements ScriptNameAware
The ScriptNameAwareReader is a FilterReader marked with the ScriptNameAware interface. This reader allows retrieving the contained script's name.
  • Constructor Details

    • ScriptNameAwareReader

      public ScriptNameAwareReader(Reader in, String scriptName)
      Creates a ScriptNameAwareReader based on another Reader.
      Parameters:
      in - the base Reader
      scriptName - the script's name
  • Method Details