public class LineBufferingOutputStream extends OutputStream
| Constructor and Description |
|---|
LineBufferingOutputStream(Action<String> action) |
LineBufferingOutputStream(Action<String> action,
boolean includeEOL) |
LineBufferingOutputStream(Action<String> action,
boolean includeEOL,
int bufferLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream.
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
write, writepublic LineBufferingOutputStream(Action<String> action, boolean includeEOL)
public void close()
throws IOException
close is that it closes the output stream. A closed stream cannot perform output operations and
cannot be reopened.close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write is that one byte is
written to the output stream. The byte to be written is the eight low-order bits of the argument b.
The 24 high-order bits of b are ignored.write in class OutputStreamb - the byte to writeIOException - if an I/O error occurs. In particular, an IOException may be thrown if
the output stream has been closed.public void flush()
flush is that calling it is an indication that, if any bytes previously written have been buffered
by the implementation of the output stream, such bytes should immediately be written to their intended
destination.flush in interface Flushableflush in class OutputStreamCopyright © 2013. All rights reserved