Package net.minecraft.util
Class FastBufferedInputStream
java.lang.Object
java.io.InputStream
net.minecraft.util.FastBufferedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
private static final int
private final InputStream
private int
private int
-
Constructor Summary
ConstructorDescriptionFastBufferedInputStream
(InputStream p_196566_) FastBufferedInputStream
(InputStream p_196568_, int p_196569_) -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZE- See Also:
-
in
-
buffer
private final byte[] buffer -
limit
private int limit -
position
private int position
-
-
Constructor Details
-
FastBufferedInputStream
-
FastBufferedInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
bytesInBuffer
private int bytesInBuffer() -
fill
- Throws:
IOException
-