com.solarmetric.log
Class LogOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.ByteArrayOutputStream
|
+--com.solarmetric.log.LogOutputStream
- public class LogOutputStream
- extends ByteArrayOutputStream
Many standard components log to OutputStream
s.
This wrapper class extends the ByteArrayOutputStream
class and writes all given data to an underlying Log
instance
whenever it is flushed and the internally held byte array contains a
newline.
Method Summary |
void |
flush()
|
LogOutputStream
public LogOutputStream(Log log,
int level)
- Constructor.
- Parameters:
log
- the log to log tolevel
- the level to log at
flush
public void flush()
throws IOException
- Overrides:
flush
in class OutputStream
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.