If the source stream doesn't end with a end of line, one will be added. This is particularly useful in combination with the OutputStreamFunneler so each funneled stream get its line.
| Modifier and Type | Field and Description |
|---|---|
| private OutputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements java. |
| public void | flush()
Overrides org. Implements java. |
| protected void | processLine(byte[]
the line to log. b)Overrides org. |
| protected void | processLine(String
the line to log. line)Implements abstract org. |
| stream | back to summary |
|---|---|
| private OutputStream stream | |
| LineOrientedOutputStreamRedirector | back to summary |
|---|---|
| public LineOrientedOutputStreamRedirector(OutputStream stream) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Doc from org. Writes all remaining
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides org. Implements java. Doc from org. Flush this log stream
| |
| processLine | back to summary |
|---|---|
| protected void processLine(byte[] b) throws IOException Overrides org. Doc from org. Processes a line. This implementations invokes the string-arg version converting the byte array using the default encoding. Subclasses are encouraged to override this method (and provide a dummy implementation of the String-arg version) so they don't interfere with the encoding of the underlying stream.
| |
| processLine | back to summary |
|---|---|
| protected void processLine(String line) throws IOException Implements abstract org. Doc from org. Processes a line.
| |