Modifier and Type | Field and Description |
---|---|
private java.io.InputStream |
is |
Constructor and Description |
---|
InputStreamDataInput(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
byte |
readByte()
Reads and returns a single byte.
|
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset.
|
clone, readBytes, readInt, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
public byte readByte() throws java.io.IOException
DataInput
readByte
in class DataInput
java.io.IOException
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len) throws java.io.IOException
DataInput
readBytes
in class DataInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readjava.io.IOException
DataOutput.writeBytes(byte[],int)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException