Class InternalLoggerReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- org.apache.logging.log4j.io.internal.InternalLoggerReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public class InternalLoggerReader extends FilterReader
Internal class that exists primarily to allow location calculation to work.- Since:
- 2.12
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description InternalLoggerReader(Reader reader, ExtendedLogger logger, String fqcn, Level level, Marker marker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(char[] cbuf)
int
read(char[] cbuf, int off, int len)
int
read(CharBuffer target)
String
toString()
-
Methods inherited from class java.io.FilterReader
mark, markSupported, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, transferTo
-
-
-
-
Constructor Detail
-
InternalLoggerReader
public InternalLoggerReader(Reader reader, ExtendedLogger logger, String fqcn, Level level, Marker marker)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterReader
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
read
public int read(char[] cbuf) throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
read
public int read(CharBuffer target) throws IOException
- Specified by:
read
in interfaceReadable
- Overrides:
read
in classReader
- Throws:
IOException
-
-