public abstract class BufferedIndexInput extends IndexInput
IndexInput.| Constructor and Description |
|---|
BufferedIndexInput() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a clone of this stream.
|
long |
getFilePointer()
Returns the current position in this file, where the next read will
occur.
|
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.
|
protected abstract void |
readInternal(byte[] b,
int offset,
int length)
Expert: implements buffer refill.
|
void |
seek(long pos)
Sets current position in this file, where the next read will occur.
|
protected abstract void |
seekInternal(long pos)
Expert: implements seek.
|
close, length, readChars, readInt, readLong, readString, readVInt, readVLongpublic byte readByte()
throws IOException
IndexInputreadByte in class IndexInputIOExceptionIndexOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
throws IOException
IndexInputreadBytes in class IndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionIndexOutput.writeBytes(byte[],int)protected abstract void readInternal(byte[] b,
int offset,
int length)
throws IOException
b - the array to read bytes intooffset - the offset in the array to start storing byteslength - the number of bytes to readIOExceptionpublic long getFilePointer()
IndexInputgetFilePointer in class IndexInputIndexInput.seek(long)public void seek(long pos)
throws IOException
IndexInputseek in class IndexInputIOExceptionIndexInput.getFilePointer()protected abstract void seekInternal(long pos)
throws IOException
readInternal(byte[],int,int) will occur.IOExceptionreadInternal(byte[],int,int)public Object clone()
IndexInputClones 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.
clone in class IndexInputCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.