org.apache.jackrabbit.core.query.lucene.directory
Class IndexInputStream
java.lang.Object
java.io.InputStream
org.apache.jackrabbit.core.query.lucene.directory.IndexInputStream
- All Implemented Interfaces:
- Closeable
public class IndexInputStream
- extends InputStream
IndexInputStream implements an InputStream that wraps
a lucene IndexInput.
|
Constructor Summary |
IndexInputStream(org.apache.lucene.store.IndexInput input)
Creates a new index input stream wrapping the given lucene index
input. |
|
Method Summary |
void |
close()
Closes the underlying index input. |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexInputStream
public IndexInputStream(org.apache.lucene.store.IndexInput input)
- Creates a new index input stream wrapping the given lucene index
input.
- Parameters:
input - the index input to wrap.
read
public int read()
throws IOException
-
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
-
- Overrides:
read in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
-
Closes the underlying index input.
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.