com.liferay.portal.kernel.io.delta
Class ByteChannelReader
java.lang.Object
com.liferay.portal.kernel.io.delta.ByteChannelReader
public class ByteChannelReader
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteChannelReader
public ByteChannelReader(ReadableByteChannel readableByteChannel)
throws IOException
- Throws:
IOException
ByteChannelReader
public ByteChannelReader(ReadableByteChannel readableByteChannel,
int bufferLength)
throws IOException
- Throws:
IOException
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)