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.BufferedOutputStream
This 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 void
flushIfNeeded(int len)
(package private) void
writeInt(int i)
(package private) void
writeLong(long i)
(package private) void
writeShort(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
-
-