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:
Closeable
Direct Known Subclasses:
ThreadSafeInputStreamIndexInput

public class InputStreamIndexInput
extends InputStream


Constructor Summary
InputStreamIndexInput(org.apache.lucene.store.IndexInput indexInput, long limit)
           
 
Method Summary
 long actualSizeToRead()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 
Methods inherited from class java.io.InputStream
available, close, read, 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 IOException
Overrides:
read in class InputStream
Throws:
IOException

read

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

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.