Package hudson.console
Class PlainTextConsoleOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.console.LineTransformationOutputStream
-
- hudson.console.LineTransformationOutputStream.Delegating
-
- hudson.console.PlainTextConsoleOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class PlainTextConsoleOutputStream extends LineTransformationOutputStream.Delegating
Filters out console notes.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
LineTransformationOutputStream.Delegating
-
-
Field Summary
-
Fields inherited from class hudson.console.LineTransformationOutputStream.Delegating
out
-
-
Constructor Summary
Constructors Constructor Description PlainTextConsoleOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
eol(byte[] in, int sz)
Called after we read the whole line of plain text.-
Methods inherited from class hudson.console.LineTransformationOutputStream.Delegating
close, flush
-
Methods inherited from class hudson.console.LineTransformationOutputStream
forceEol, trimEOL, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
PlainTextConsoleOutputStream
public PlainTextConsoleOutputStream(OutputStream out)
-
-
Method Detail
-
eol
protected void eol(byte[] in, int sz) throws IOException
Called after we read the whole line of plain text.- Specified by:
eol
in classLineTransformationOutputStream
- Parameters:
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.- Throws:
IOException
-
-