public final class PagedBytes.PagedBytesDataInput extends DataInput
| Modifier and Type | Method and Description |
|---|---|
PagedBytes.PagedBytesDataInput |
clone()
Returns a clone of this stream.
|
long |
getPosition()
Returns the current byte position.
|
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.
|
void |
setPosition(long pos)
Seek to a position previously obtained from
getPosition(). |
readBytes, readInt, readLong, readShort, readString, readStringSet, readStringStringMap, readVInt, readVLong, readZInt, readZLong, skipBytespublic PagedBytes.PagedBytesDataInput clone()
DataInputClones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
public long getPosition()
public void setPosition(long pos)
getPosition().public byte readByte()
DataInputreadByte in class DataInputDataOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
DataInputreadBytes in class DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readDataOutput.writeBytes(byte[],int)Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.