Class InputStreamIndexInput
java.lang.Object
java.io.InputStream
org.elasticsearch.common.lucene.store.InputStreamIndexInput
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class InputStreamIndexInput
extends java.io.InputStream
-
Constructor Summary
Constructors Constructor Description InputStreamIndexInput(org.apache.lucene.store.IndexInput indexInput, long limit) -
Method Summary
Modifier and Type Method Description longactualSizeToRead()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b, int off, int len)voidreset()Methods inherited from class java.io.InputStream
available, close, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
InputStreamIndexInput
public InputStreamIndexInput(org.apache.lucene.store.IndexInput indexInput, long limit)
-
-
Method Details
-
actualSizeToRead
public long actualSizeToRead() -
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classjava.io.InputStream
-
mark
public void mark(int readlimit)- Overrides:
markin classjava.io.InputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.InputStream- Throws:
java.io.IOException
-