public class ByteArrayIndexInput
extends org.apache.lucene.store.IndexInput
Constructor and Description |
---|
ByteArrayIndexInput(java.lang.String resourceDesc,
byte[] bytes) |
ByteArrayIndexInput(java.lang.String resourceDesc,
byte[] bytes,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getFilePointer() |
long |
length() |
byte |
readByte() |
void |
readBytes(byte[] b,
int offset,
int len) |
void |
seek(long l) |
org.apache.lucene.store.IndexInput |
slice(java.lang.String sliceDescription,
long offset,
long length) |
clone, getFullSliceDescription, randomAccessSlice, toString
public ByteArrayIndexInput(java.lang.String resourceDesc, byte[] bytes)
public ByteArrayIndexInput(java.lang.String resourceDesc, byte[] bytes, int offset, int length)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.store.IndexInput
java.io.IOException
public long getFilePointer()
getFilePointer
in class org.apache.lucene.store.IndexInput
public void seek(long l) throws java.io.IOException
seek
in class org.apache.lucene.store.IndexInput
java.io.IOException
public long length()
length
in class org.apache.lucene.store.IndexInput
public org.apache.lucene.store.IndexInput slice(java.lang.String sliceDescription, long offset, long length) throws java.io.IOException
slice
in class org.apache.lucene.store.IndexInput
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in class org.apache.lucene.store.DataInput
java.io.IOException
public void readBytes(byte[] b, int offset, int len) throws java.io.IOException
readBytes
in class org.apache.lucene.store.DataInput
java.io.IOException