Package net.minecraft.util
Class FastBufferedInputStream
java.lang.Object
java.io.InputStream
net.minecraft.util.FastBufferedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private static final intprivate final InputStreamprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionFastBufferedInputStream(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:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
bytesInBuffer
private int bytesInBuffer() -
fill
- Throws:
IOException
-