Class IndexOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.jackrabbit.core.query.lucene.directory.IndexOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class IndexOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description IndexOutputStream(IndexOutput output)Creates a new index output stream and wraps the givenoutput.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
IndexOutputStream
public IndexOutputStream(IndexOutput output) throws IOException
Creates a new index output stream and wraps the givenoutput. Bytes will always be written at the end of theoutput.- Parameters:
output- the lucene index output.- Throws:
IOException- if an error occurs while seeking to the end of the indexoutput.
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOExceptionFlushes the underlying index output.
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOExceptionCloses the underlying index output.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-