Class ChannelBufferOutputStream
java.lang.Object
java.io.OutputStream
ca.spottedleaf.ioutil.stream.AbstractBufferOutputStream
ca.spottedleaf.ioutil.stream.channel.ChannelBufferOutputStream
- All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable
-
Field Summary
Fields inherited from class AbstractBufferOutputStream
writeBuffer -
Constructor Summary
ConstructorsConstructorDescriptionChannelBufferOutputStream(Buffer readBuffer, WritableByteChannel channel) ChannelBufferOutputStream(Buffer readBuffer, WritableByteChannel channel, boolean closeChannel) -
Method Summary
Modifier and TypeMethodDescriptionlongvoidclose()voidflush()voidsetPosition(long pos) protected booleanMethods inherited from class AbstractBufferOutputStream
ensureWritable, getImmediatelyWritable, getWritable, tryEnsure, tryEnsureImmediatelyWritable, write, write, write, write, write, write, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeCharLE, writeCharNO, writeChars, writeChars, writeChars, writeChars, writeCharsLE, writeCharsLE, writeCharsNO, writeCharsNO, writeDouble, writeDoubleLE, writeDoubleNO, writeDoubles, writeDoubles, writeDoublesLE, writeDoublesLE, writeDoublesNO, writeDoublesNO, writeFilePos, writeFilePos, writeFloat, writeFloatLE, writeFloatNO, writeFloats, writeFloats, writeFloatsLE, writeFloatsLE, writeFloatsNO, writeFloatsNO, writeInt, writeIntLE, writeIntNO, writeInts, writeInts, writeIntsLE, writeIntsLE, writeIntsNO, writeIntsNO, writeLong, writeLongLE, writeLongNO, writeLongs, writeLongs, writeLongsLE, writeLongsLE, writeLongsNO, writeLongsNO, writeMedium, writeMediumLE, writeMediums, writeMediums, writeMediumsLE, writeMediumsLE, writeShort, writeShortLE, writeShortNO, writeShorts, writeShorts, writeShortsLE, writeShortsLE, writeShortsNO, writeShortsNO, writeSignedVarInt, writeSignedVarLong, writeUnsignedVarInt, writeUnsignedVarLong, writeUTFMethods inherited from class OutputStream
nullOutputStream
-
Constructor Details
-
ChannelBufferOutputStream
-
ChannelBufferOutputStream
public ChannelBufferOutputStream(Buffer readBuffer, WritableByteChannel channel, boolean closeChannel)
-
-
Method Details
-
tryFlushWriteBuffer
- Specified by:
tryFlushWriteBufferin classAbstractBufferOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
channelPosition
- Throws:
IOException
-
setPosition
- Throws:
IOException
-