public class PlainTextConsoleOutputStream extends LineTransformationOutputStream
| Constructor and Description |
|---|
PlainTextConsoleOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
eol(byte[] in,
int sz)
Called after we read the whole line of plain text.
|
void |
flush() |
forceEol, trimEOL, write, writewritepublic PlainTextConsoleOutputStream(OutputStream out)
protected void eol(byte[] in,
int sz)
throws IOException
eol in class LineTransformationOutputStreamin - Contents of the whole line, including the EOL code like CR/LF.sz - Specifies the length of the valid contents in 'b'. The rest is garbage.
This is so that the caller doesn't have to allocate an array of the exact size.IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class LineTransformationOutputStreamIOExceptionCopyright © 2019. All rights reserved.