Package org.apache.sling.scripting.core

# Klasse ScriptNameAwareReader

java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.sling.scripting.core.ScriptNameAwareReader

Alle implementierten Schnittstellen:
  `Closeable`, `AutoCloseable`, `Readable`, `org.apache.sling.scripting.api.ScriptNameAware`

public final class ScriptNameAwareReader extends FilterReader implements org.apache.sling.scripting.api.ScriptNameAware
The `ScriptNameAwareReader` is a `FilterReader` marked with the `ScriptNameAware` interface. This reader allows retrieving the contained script's name.

## Feldübersicht

### Von Klasse geerbte Felder java.io.FilterReader

`in`

### Von Klasse geerbte Felder java.io.Reader

`lock`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`ScriptNameAwareReader(Reader in, String scriptName)`
Creates a `ScriptNameAwareReader` based on another `Reader`.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`String`
`getScriptName()`

### Von Klasse geerbte Methoden java.io.FilterReader

`close, mark, markSupported, read, read, ready, reset, skip`

### Von Klasse geerbte Methoden java.io.Reader

`nullReader, read, read, transferTo`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### ScriptNameAwareReader

public ScriptNameAwareReader(Reader in, String scriptName)
Creates a `ScriptNameAwareReader` based on another `Reader`.

Parameter:
  `in` - the base `Reader`
  `scriptName` - the script's name

## Methodendetails

### getScriptName

public String getScriptName()

Angegeben von:
  `getScriptName` in Schnittstelle `org.apache.sling.scripting.api.ScriptNameAware`