com.liferay.portal.kernel.io.delta
Class ByteChannelWriter

java.lang.Object
  extended by 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)
           
 
Method Summary
 void ensureSpace(int length)
           
 void finish()
           
 java.nio.ByteBuffer getBuffer()
           
 void resizeBuffer(int minBufferLength)
           
protected  void write()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteChannelWriter

public ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel)

ByteChannelWriter

public ByteChannelWriter(java.nio.channels.WritableByteChannel writableByteChannel,
                         int bufferLength)
Method Detail

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