com.liferay.portal.kernel.io.delta
Class ByteChannelReader
java.lang.Object
com.liferay.portal.kernel.io.delta.ByteChannelReader
public class ByteChannelReader
- extends java.lang.Object
- Author:
- Connor McKay
|
Constructor Summary |
ByteChannelReader(java.nio.channels.ReadableByteChannel readableByteChannel)
|
ByteChannelReader(java.nio.channels.ReadableByteChannel readableByteChannel,
int bufferLength)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteChannelReader
public ByteChannelReader(java.nio.channels.ReadableByteChannel readableByteChannel)
throws java.io.IOException
- Throws:
java.io.IOException
ByteChannelReader
public ByteChannelReader(java.nio.channels.ReadableByteChannel readableByteChannel,
int bufferLength)
throws java.io.IOException
- Throws:
java.io.IOException
ensureData
public void ensureData(int length)
throws java.io.IOException
- Throws:
java.io.IOException
get
public byte get()
get
public byte get(int offset)
getBuffer
public java.nio.ByteBuffer getBuffer()
hasRemaining
public boolean hasRemaining()
maybeRead
public void maybeRead(int length)
throws java.io.IOException
- Throws:
java.io.IOException
read
public void read()
throws java.io.IOException
- Throws:
java.io.IOException
remaining
public int remaining()
resizeBuffer
public void resizeBuffer(int minBufferLength)
skip
public int skip(int length)