Class AbstractBufferInputStream
java.lang.Object
java.io.InputStream
ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
- All Implemented Interfaces:
Closeable, DataInput, AutoCloseable
- Direct Known Subclasses:
BufferedBufferInputStream, ChannelBufferInputStream, SimpleBufferInputStream, ZSTDBufferInputStream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intlongprotected final voidensureReadable(long nBytes) final longfinal booleanisEOF()final intread()final intread(byte[] b) final intread(byte[] b, int off, int len) final longfinal voidfinal voidread(AbstractBufferOutputStream dst, long nBytes) final longread(MemorySegment segment, long dstOffset) final voidread(MemorySegment segment, long dstOffset, long nBytes) final longread(ByteBuffer buffer) final voidread(ByteBuffer buffer, int nBytes) final longread(WritableByteChannel channel) final voidread(WritableByteChannel channel, long nBytes) final booleanfinal bytereadByte()final charreadChar()final charfinal charfinal doublefinal doublefinal doublefinal floatfinal floatfinal floatfinal voidreadFully(byte[] bytes) final voidreadFully(byte[] bytes, int off, int len) final voidreadFully(char[] chars) final voidreadFully(char[] chars, int off, int len) final voidreadFully(double[] doubles) final voidreadFully(double[] doubles, int off, int len) final voidreadFully(float[] floats) final voidreadFully(float[] floats, int off, int len) final voidreadFully(int[] ints) final voidreadFully(int[] ints, int off, int len) final voidreadFully(long[] longs) final voidreadFully(long[] longs, int off, int len) final voidreadFully(short[] shorts) final voidreadFully(short[] shorts, int off, int len) final voidreadFullyLE(char[] chars) final voidreadFullyLE(char[] chars, int off, int len) final voidreadFullyLE(double[] doubles) final voidreadFullyLE(double[] doubles, int off, int len) final voidreadFullyLE(float[] floats) final voidreadFullyLE(float[] floats, int off, int len) final voidreadFullyLE(int[] ints) final voidreadFullyLE(int[] ints, int off, int len) final voidreadFullyLE(long[] longs) final voidreadFullyLE(long[] longs, int off, int len) final voidreadFullyLE(short[] shorts) final voidreadFullyLE(short[] shorts, int off, int len) final voidreadFullyNO(char[] chars) final voidreadFullyNO(char[] chars, int off, int len) final voidreadFullyNO(double[] doubles) final voidreadFullyNO(double[] doubles, int off, int len) final voidreadFullyNO(float[] floats) final voidreadFullyNO(float[] floats, int off, int len) final voidreadFullyNO(int[] ints) final voidreadFullyNO(int[] ints, int off, int len) final voidreadFullyNO(long[] longs) final voidreadFullyNO(long[] longs, int off, int len) final voidreadFullyNO(short[] shorts) final voidreadFullyNO(short[] shorts, int off, int len) final intreadInt()final intfinal intfinal StringreadLine()final longreadLong()final longfinal longfinal shortfinal shortfinal shortfinal intfinal intfinal voidreadSignedMediumsFully(int[] mediums) final voidreadSignedMediumsFully(int[] mediums, int off, int len) final voidreadSignedMediumsFullyLE(int[] mediums) final voidreadSignedMediumsFullyLE(int[] mediums, int off, int len) final intfinal longfinal intfinal intfinal intfinal voidreadUnsignedMediumsFully(int[] mediums) final voidreadUnsignedMediumsFully(int[] mediums, int off, int len) final voidreadUnsignedMediumsFullyLE(int[] mediums) final voidreadUnsignedMediumsFullyLE(int[] mediums, int off, int len) final intfinal intfinal longfinal StringreadUTF()longskip(long n) final intskipBytes(int n) protected final booleantryEnsure(long nBytes) protected abstract booleanMethods inherited from class InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
readBuffer
-
-
Constructor Details
-
AbstractBufferInputStream
-
-
Method Details
-
getImmediatelyReadable
public final long getImmediatelyReadable() -
isEOF
- Throws:
IOException
-
tryFillReadBuffer
- Throws:
IOException
-
ensureReadable
- Throws:
IOException
-
tryEnsure
- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
availableLong
- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
readShortLE
- Throws:
IOException
-
readShortNO
- Throws:
IOException
-
readCharLE
- Throws:
IOException
-
readCharNO
- Throws:
IOException
-
readIntLE
- Throws:
IOException
-
readIntNO
- Throws:
IOException
-
readFloatLE
- Throws:
IOException
-
readFloatNO
- Throws:
IOException
-
readLongLE
- Throws:
IOException
-
readLongNO
- Throws:
IOException
-
readDoubleLE
- Throws:
IOException
-
readDoubleNO
- Throws:
IOException
-
readSignedVarInt
- Throws:
IOException
-
readUnsignedVarInt
- Throws:
IOException
-
readSignedVarLong
- Throws:
IOException
-
readUnsignedVarLong
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readUnsignedMedium
- Throws:
IOException
-
readUnsignedMediumLE
- Throws:
IOException
-
readSignedMedium
- Throws:
IOException
-
readSignedMediumLE
- Throws:
IOException
-
readUnsignedMediumsFully
- Throws:
IOException
-
readUnsignedMediumsFully
- Throws:
IOException
-
readUnsignedMediumsFullyLE
- Throws:
IOException
-
readUnsignedMediumsFullyLE
- Throws:
IOException
-
readSignedMediumsFully
- Throws:
IOException
-
readSignedMediumsFully
- Throws:
IOException
-
readSignedMediumsFullyLE
- Throws:
IOException
-
readSignedMediumsFullyLE
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyLE
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
readFullyNO
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-