org.abstracthorizon.danube.support.logging
Class DirectionalLoggingOutputStream
java.lang.Object
java.io.OutputStream
org.abstracthorizon.danube.support.logging.LoggingOutputStream
org.abstracthorizon.danube.support.logging.DirectionalLoggingOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class DirectionalLoggingOutputStream
- extends LoggingOutputStream
Output stream for logging showing directional marks "<".
Given output stream is duplicated to log stream.
- Author:
- Daniel Sendula
Field Summary |
protected boolean |
flag
Internal flag to show when to output directional char |
Method Summary |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
flag
protected boolean flag
- Internal flag to show when to output directional char
DirectionalLoggingOutputStream
public DirectionalLoggingOutputStream(OutputStream outputStream,
OutputStream logOutputStream)
- Constructor
- Parameters:
outputStream
- output streamlogOutputStream
- log output stream
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class LoggingOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class LoggingOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write
in class LoggingOutputStream
- Throws:
IOException
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.