Package org.apache.lucene.store
Class OutputStreamIndexOutput.XBufferedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.BufferedOutputStream
-
- org.apache.lucene.store.OutputStreamIndexOutput.XBufferedOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- OutputStreamIndexOutput
private static final class OutputStreamIndexOutput.XBufferedOutputStream extends java.io.BufferedOutputStreamThis subclass is an optimization for writing primitives. Don't use outside of this class!
-
-
Constructor Summary
Constructors Constructor Description XBufferedOutputStream(java.io.OutputStream out, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidflushIfNeeded(int len)(package private) voidwriteInt(int i)(package private) voidwriteLong(long i)(package private) voidwriteShort(short i)
-
-
-
Method Detail
-
flushIfNeeded
private void flushIfNeeded(int len) throws java.io.IOException- Throws:
java.io.IOException
-
writeShort
void writeShort(short i) throws java.io.IOException- Throws:
java.io.IOException
-
writeInt
void writeInt(int i) throws java.io.IOException- Throws:
java.io.IOException
-
writeLong
void writeLong(long i) throws java.io.IOException- Throws:
java.io.IOException
-
-