public class LineBufferingOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
LineBufferingOutputStream(TextStream handler,
java.lang.String lineSeparator) |
LineBufferingOutputStream(TextStream handler,
java.lang.String lineSeparator,
int bufferLength) |
LineBufferingOutputStream(TextStream handler,
java.lang.String lineSeparator,
int bufferLength,
int lineMaxLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream.
|
void |
flush() |
void |
write(int b)
Writes the specified byte to this output stream.
|
public LineBufferingOutputStream(TextStream handler, java.lang.String lineSeparator)
public LineBufferingOutputStream(TextStream handler, java.lang.String lineSeparator, int bufferLength)
public LineBufferingOutputStream(TextStream handler, java.lang.String lineSeparator, int bufferLength, int lineMaxLength)
public void close()
throws java.io.IOException
close is that it closes the output stream. A closed stream cannot perform output operations and
cannot be reopened.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.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 java.io.OutputStreamb - the byte to writejava.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if
the output stream has been closed.public void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStream