public class LoggingOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
LoggingOutputStream(Logger logger)
Create a LoggingOutputStream using a specified logger.
|
LoggingOutputStream(Logger logger,
BitMask m)
Create a LoggingOutputStream using a specified logger
and BitMask mask.
|
Modifier and Type | Method and Description |
---|---|
void |
doLogging(java.lang.String s)
This is where the logger is called.
|
void |
flush()
Flush this OutputStream.
|
Logger |
getLogger()
Get the logger for this LoggingOutputStream.
|
BitMask |
getMask()
Get the mask for this LoggingOutputStream.
|
void |
setLogger(Logger l)
Set the logger for this LoggingOutputStream.
|
void |
setMask(BitMask m)
Set the mask for this LoggingOutputStream.
|
void |
write(int b)
The write method needed for an OutputStream.
|
public LoggingOutputStream(Logger logger)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void doLogging(java.lang.String s)
public void setMask(BitMask m)
public BitMask getMask()
public void setLogger(Logger l)
public Logger getLogger()
User Space Routing 0.10.3