Class ChannelBufferInputStream
java.lang.Object
java.io.InputStream
ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
ca.spottedleaf.ioutil.stream.channel.ChannelBufferInputStream
- All Implemented Interfaces:
Closeable, DataInput, AutoCloseable
-
Field Summary
Fields inherited from class AbstractBufferInputStream
readBuffer -
Constructor Summary
ConstructorsConstructorDescriptionChannelBufferInputStream(Buffer readBuffer, ReadableByteChannel channel) ChannelBufferInputStream(Buffer readBuffer, ReadableByteChannel channel, boolean closeChannel) -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidclose()voidsetPosition(long pos) longskip(long n) voidskipNBytes(long n) protected booleanMethods inherited from class AbstractBufferInputStream
available, ensureReadable, getImmediatelyReadable, isEOF, read, read, read, read, read, read, read, read, read, read, read, read, readBoolean, readByte, readChar, readCharLE, readCharNO, readDouble, readDoubleLE, readDoubleNO, readFilePos, readFilePos, readFloat, readFloatLE, readFloatNO, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readInt, readIntLE, readIntNO, readLine, readLong, readLongLE, readLongNO, readShort, readShortLE, readShortNO, readSignedMedium, readSignedMediumLE, readSignedMediumsFully, readSignedMediumsFully, readSignedMediumsFullyLE, readSignedMediumsFullyLE, readSignedVarInt, readSignedVarLong, readUnsignedByte, readUnsignedMedium, readUnsignedMediumLE, readUnsignedMediumsFully, readUnsignedMediumsFully, readUnsignedMediumsFullyLE, readUnsignedMediumsFullyLE, readUnsignedShort, readUnsignedVarInt, readUnsignedVarLong, readUTF, skipBytes, tryEnsureMethods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
Constructor Details
-
ChannelBufferInputStream
-
ChannelBufferInputStream
public ChannelBufferInputStream(Buffer readBuffer, ReadableByteChannel channel, boolean closeChannel)
-
-
Method Details
-
tryFillReadBuffer
- Specified by:
tryFillReadBufferin classAbstractBufferInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classAbstractBufferInputStream- Throws:
IOException
-
skipNBytes
- Overrides:
skipNBytesin classInputStream- Throws:
IOException
-
availableLong
- Overrides:
availableLongin classAbstractBufferInputStream- Throws:
IOException
-
channelPosition
- Throws:
IOException
-
setPosition
- Throws:
IOException
-