Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.kernel.io.delta.ByteChannelWriter

public class ByteChannelWriter
extends Object


Constructor Summary
ByteChannelWriter(WritableByteChannel writableByteChannel)
           
ByteChannelWriter(WritableByteChannel writableByteChannel, int bufferLength)
           
 
Method Summary
 void ensureSpace(int length)
           
 void finish()
           
 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(WritableByteChannel writableByteChannel)

ByteChannelWriter

public ByteChannelWriter(WritableByteChannel writableByteChannel,
                         int bufferLength)
Method Detail

ensureSpace

public void ensureSpace(int length)
                 throws IOException
Throws:
IOException

finish

public void finish()
            throws IOException
Throws:
IOException

getBuffer

public ByteBuffer getBuffer()

resizeBuffer

public void resizeBuffer(int minBufferLength)

write

protected void write()
              throws IOException
Throws:
IOException

Liferay 6.1.2-ce-ga3