public class DataInputBuffer extends RebufferingInputStream
DataInputPlus.DataInputStreamPlus
buffer
Constructor and Description |
---|
DataInputBuffer(byte[] buffer) |
DataInputBuffer(byte[] buffer,
int offset,
int length) |
DataInputBuffer(java.nio.ByteBuffer buffer,
boolean duplicate) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
protected void |
reBuffer()
Implementations must implement this method to refill the buffer.
|
markSupported, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, reset, skipBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skipBytesFully
public DataInputBuffer(java.nio.ByteBuffer buffer, boolean duplicate)
buffer
- duplicate
- Whether or not to duplicate the buffer to ensure thread safetypublic DataInputBuffer(byte[] buffer, int offset, int length)
public DataInputBuffer(byte[] buffer)
protected void reBuffer() throws java.io.IOException
RebufferingInputStream
reBuffer
in class RebufferingInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
Copyright © 2017 The Apache Software Foundation