MMapDirectory
. It will be removed in future versions
of Lucene.@Deprecated public class RAMInputStream extends IndexInput implements java.lang.Cloneable
IndexInput
implementation.Constructor and Description |
---|
RAMInputStream(java.lang.String name,
RAMFile f)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Closes the stream to further operations.
|
long |
getFilePointer()
Deprecated.
Returns the current position in this file, where the next read will
occur.
|
long |
length()
Deprecated.
The number of bytes in the file.
|
byte |
readByte()
Deprecated.
Reads and returns a single byte.
|
void |
readBytes(byte[] b,
int offset,
int len)
Deprecated.
Reads a specified number of bytes into an array at the specified offset.
|
void |
seek(long pos)
Deprecated.
Sets current position in this file, where the next read will occur.
|
IndexInput |
slice(java.lang.String sliceDescription,
long offset,
long sliceLength)
Deprecated.
Creates a slice of this index input, with the given description, offset, and length.
|
clone, getFullSliceDescription, randomAccessSlice, toString
readBytes, readInt, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
public RAMInputStream(java.lang.String name, RAMFile f) throws java.io.IOException
java.io.IOException
public void close()
IndexInput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class IndexInput
public long length()
IndexInput
length
in class IndexInput
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 long getFilePointer()
IndexInput
getFilePointer
in class IndexInput
IndexInput.seek(long)
public void seek(long pos) throws java.io.IOException
IndexInput
EOFException
and then the
stream is in an undetermined state.seek
in class IndexInput
java.io.IOException
IndexInput.getFilePointer()
public IndexInput slice(java.lang.String sliceDescription, long offset, long sliceLength) throws java.io.IOException
IndexInput
slice
in class IndexInput
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.