org.abstracthorizon.danube.support.logging
Class DirectionalLoggingOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.abstracthorizon.danube.support.logging.LoggingOutputStream
          extended by 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
 
Fields inherited from class org.abstracthorizon.danube.support.logging.LoggingOutputStream
logging, logOutputStream, outputStream
 
Constructor Summary
DirectionalLoggingOutputStream(OutputStream outputStream, OutputStream logOutputStream)
          Constructor
 
Method Summary
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class org.abstracthorizon.danube.support.logging.LoggingOutputStream
close, flush, isLogging, setLogging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flag

protected boolean flag
Internal flag to show when to output directional char

Constructor Detail

DirectionalLoggingOutputStream

public DirectionalLoggingOutputStream(OutputStream outputStream,
                                      OutputStream logOutputStream)
Constructor

Parameters:
outputStream - output stream
logOutputStream - log output stream
Method Detail

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.