public class DataInputBuffer extends RebufferingInputStream
DataInputPlus.DataInputStreamPlusbuffer| 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, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, skipBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipBytesFullypublic 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()
RebufferingInputStreamreBuffer in class RebufferingInputStreampublic int available()
available in class java.io.InputStreampublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamCopyright © 2009-2022 The Apache Software Foundation