com.liferay.portal.kernel.io.delta
Class ByteChannelWriter
java.lang.Object
com.liferay.portal.kernel.io.delta.ByteChannelWriter
public class ByteChannelWriter
- extends java.lang.Object
- Author:
- Connor McKay
|
Constructor Summary |
ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel)
|
ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel,
int bufferLength)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteChannelWriter
public ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel)
ByteChannelWriter
public ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel,
int bufferLength)
ensureSpace
public void ensureSpace(int length)
throws java.io.IOException
- Throws:
java.io.IOException
finish
public void finish()
throws java.io.IOException
- Throws:
java.io.IOException
getBuffer
public java.nio.ByteBuffer getBuffer()
resizeBuffer
public void resizeBuffer(int minBufferLength)
write
protected void write()
throws java.io.IOException
- Throws:
java.io.IOException