public class LogPrintStream
extends java.io.OutputStream
| Constructor and Description |
|---|
LogPrintStream(java.lang.String directory,
java.lang.String baseFilename,
java.lang.String timeInterval,
boolean localTime,
boolean echoToOut) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream.
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out.
|
void |
setTimeInterval(java.lang.String timeInterval) |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream.
|
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
public LogPrintStream(java.lang.String directory,
java.lang.String baseFilename,
java.lang.String timeInterval,
boolean localTime,
boolean echoToOut)
public void setTimeInterval(java.lang.String timeInterval)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException