public class PlainTextConsoleOutputStream extends LineTransformationOutputStream.Delegating
LineTransformationOutputStream.Delegating
out
Constructor and Description |
---|
PlainTextConsoleOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected void |
eol(byte[] in,
int sz)
Called after we read the whole line of plain text.
|
close, 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
Copyright © 2004–2021. All rights reserved.