Closeable
, AutoCloseable
, Cloneable
public class MockIndexInput extends BufferedIndexInput
BUFFER_SIZE
Constructor | Description |
---|---|
MockIndexInput(byte[] bytes) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes the stream to further operations.
|
long |
length() |
The number of bytes in the file.
|
protected void |
readInternal(byte[] dest,
int destOffset,
int len) |
Expert: implements buffer refill.
|
protected void |
seekInternal(long pos) |
Expert: implements seek.
|
clone, copyBytes, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode
skipChars, toString
protected void readInternal(byte[] dest, int destOffset, int len)
BufferedIndexInput
readInternal
in class BufferedIndexInput
dest
- the array to read bytes intodestOffset
- the offset in the array to start storing byteslen
- the number of bytes to readpublic void close()
IndexInput
close
in interface AutoCloseable
close
in interface Closeable
close
in class IndexInput
protected void seekInternal(long pos)
BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
will occur.seekInternal
in class BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
public long length()
IndexInput
length
in class IndexInput
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.