Class InternalBufferedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.BufferedInputStream
-
- org.apache.logging.log4j.io.internal.InternalBufferedInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class InternalBufferedInputStream extends java.io.BufferedInputStream
Internal class that exists primarly to allow location calculations to work.- Since:
- 2.12
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
FQCN
-
Constructor Summary
Constructors Constructor Description InternalBufferedInputStream(java.io.InputStream in, java.nio.charset.Charset charset, int size, ExtendedLogger logger, java.lang.String fqcn, Level level, Marker marker)
InternalBufferedInputStream(java.io.InputStream in, java.nio.charset.Charset charset, ExtendedLogger logger, java.lang.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)
java.lang.String
toString()
-
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, reset, skip
-
-
-
-
Constructor Detail
-
InternalBufferedInputStream
public InternalBufferedInputStream(java.io.InputStream in, java.nio.charset.Charset charset, ExtendedLogger logger, java.lang.String fqcn, Level level, Marker marker)
-
InternalBufferedInputStream
public InternalBufferedInputStream(java.io.InputStream in, java.nio.charset.Charset charset, int size, ExtendedLogger logger, java.lang.String fqcn, Level level, Marker marker)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.BufferedInputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.BufferedInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.BufferedInputStream
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-