org.elasticsearch.common.lucene.store
Class InputStreamIndexInput

java.lang.Object
  extended by java.io.InputStream
      extended by org.elasticsearch.common.lucene.store.InputStreamIndexInput
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
ThreadSafeInputStreamIndexInput

public class InputStreamIndexInput
extends java.io.InputStream


Constructor Summary
InputStreamIndexInput(org.apache.lucene.store.IndexInput indexInput, long limit)
           
 
Method Summary
 long actualSizeToRead()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamIndexInput

public InputStreamIndexInput(org.apache.lucene.store.IndexInput indexInput,
                             long limit)
Method Detail

actualSizeToRead

public long actualSizeToRead()

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException