Class LoggedOutputStream
java.lang.Object
java.io.OutputStream
VASSAL.tools.logging.LoggedOutputStream
-
Constructor Summary
ConstructorDescriptionCreates aLoggedOutputStream
with the default logger.LoggedOutputStream
(org.slf4j.Logger logger) Creates aLoggedOutputStream
. -
Method Summary
Methods inherited from class java.io.OutputStream
close, nullOutputStream, write
-
Constructor Details
-
LoggedOutputStream
public LoggedOutputStream()Creates aLoggedOutputStream
with the default logger. -
LoggedOutputStream
public LoggedOutputStream(org.slf4j.Logger logger) Creates aLoggedOutputStream
.- Parameters:
logger
- the logger which receives the output
-
-
Method Details
-
write
public void write(int b) - Specified by:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-