Liferay 6.1.2-ce-ga3

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

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

public class ByteChannelReader
extends Object


Constructor Summary
ByteChannelReader(ReadableByteChannel readableByteChannel)
           
ByteChannelReader(ReadableByteChannel readableByteChannel, int bufferLength)
           
 
Method Summary
 void ensureData(int length)
           
 byte get()
           
 byte get(int offset)
           
 ByteBuffer getBuffer()
           
 boolean hasRemaining()
           
 void maybeRead(int length)
           
 void read()
           
 int remaining()
           
 void resizeBuffer(int minBufferLength)
           
 int skip(int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteChannelReader

public ByteChannelReader(ReadableByteChannel readableByteChannel)
                  throws IOException
Throws:
IOException

ByteChannelReader

public ByteChannelReader(ReadableByteChannel readableByteChannel,
                         int bufferLength)
                  throws IOException
Throws:
IOException
Method Detail

ensureData

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

get

public byte get()

get

public byte get(int offset)

getBuffer

public ByteBuffer getBuffer()

hasRemaining

public boolean hasRemaining()

maybeRead

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

read

public void read()
          throws IOException
Throws:
IOException

remaining

public int remaining()

resizeBuffer

public void resizeBuffer(int minBufferLength)

skip

public int skip(int length)

Liferay 6.1.2-ce-ga3