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, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
public PagedBytes.PagedBytesDataInput clone()
DataInput
Clones 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()
DataInput
readByte
in class DataInput
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len)
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 readDataOutput.writeBytes(byte[],int)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.