Package org.basex.io.out
Class BufferOutput
java.lang.Object
java.io.OutputStream
org.basex.io.out.BufferOutput
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
This class uses a byte buffer to speed up output stream processing.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen, Tim Petrowsky
-
Constructor Summary
ConstructorsConstructorDescriptionBufferOutput(OutputStream out) Constructor with a default buffer size.BufferOutput(IOFile file) Constructor. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Constructor Details
-
BufferOutput
Constructor.- Parameters:
file- target file- Throws:
IOException- I/O exception
-
BufferOutput
Constructor with a default buffer size.- Parameters:
out- the stream to write to
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-