Package org.apache.logging.log4j.io
Class LoggerBufferedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.BufferedInputStream
-
- org.apache.logging.log4j.io.LoggerBufferedInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class LoggerBufferedInputStream extends BufferedInputStream
- Since:
- 2.1
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LoggerBufferedInputStream(InputStream in, Charset charset, int size, ExtendedLogger logger, String fqcn, Level level, Marker marker)
protected
LoggerBufferedInputStream(InputStream in, Charset charset, 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(byte[] b)
int
read(byte[] b, int off, int len)
String
toString()
-
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
LoggerBufferedInputStream
protected LoggerBufferedInputStream(InputStream in, Charset charset, ExtendedLogger logger, String fqcn, Level level, Marker marker)
-
LoggerBufferedInputStream
protected LoggerBufferedInputStream(InputStream in, Charset charset, int size, 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 classBufferedInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classBufferedInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classBufferedInputStream
- Throws:
IOException
-
-