Module org.apache.lucene.core
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:
Closeable,Flushable,AutoCloseable
- Enclosing class:
OutputStreamIndexOutput
private static final class OutputStreamIndexOutput.XBufferedOutputStream
extends BufferedOutputStream
This subclass is an optimization for writing primitives. Don't use outside of this class!
-
Field Summary
Fields inherited from class java.io.BufferedOutputStream
buf, countFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidflushIfNeeded(int len) (package private) voidwriteInt(int i) (package private) voidwriteLong(long i) (package private) voidwriteShort(short i) Methods inherited from class java.io.BufferedOutputStream
flush, write, writeMethods inherited from class java.io.FilterOutputStream
close, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
XBufferedOutputStream
XBufferedOutputStream(OutputStream out, int size)
-
-
Method Details
-
flushIfNeeded
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-