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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
actualSizeToRead()
void
mark(int readlimit)
boolean
markSupported()
int
read()
int
read(byte[] b, int off, int len)
void
reset()
-
-
-
Method Detail
-
actualSizeToRead
public long actualSizeToRead()
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjava.io.InputStream
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classjava.io.InputStream
-
reset
public void reset() throws java.io.IOException
- Overrides:
reset
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-