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() |
void |
close() |
protected void |
reBuffer()
Implementations must implement this method to refill the buffer.
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, 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()
RebufferingInputStream
reBuffer
in class RebufferingInputStream
public int available()
available
in class java.io.InputStream
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
Copyright © 2009-2021 The Apache Software Foundation