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, write
write
public PlainTextConsoleOutputStream(OutputStream out)
protected void eol(byte[] in, int sz) throws IOException
eol
in class LineTransformationOutputStream
in
- 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.IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class LineTransformationOutputStream
IOException
Copyright © 2017. All rights reserved.