public class ByteChannelWriter
extends java.lang.Object
Constructor and Description |
---|
ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel) |
ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel,
int bufferLength) |
Modifier and Type | Method and Description |
---|---|
void |
ensureSpace(int length) |
void |
finish() |
java.nio.ByteBuffer |
getBuffer() |
void |
resizeBuffer(int minBufferLength) |
protected void |
write() |
public ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel)
public ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel, int bufferLength)
public void ensureSpace(int length) throws java.io.IOException
java.io.IOException
public void finish() throws java.io.IOException
java.io.IOException
public java.nio.ByteBuffer getBuffer()
public void resizeBuffer(int minBufferLength)
protected void write() throws java.io.IOException
java.io.IOException