Package hec.io
Class LogPrintStream
java.lang.Object
java.io.OutputStream
hec.io.LogPrintStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionLogPrintStream(String directory, String baseFilename, String timeInterval, boolean localTime, boolean echoToOut) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this output stream and releases any system resources associated with this stream.voidflush()Flushes this output stream and forces any buffered output bytes to be written out.voidsetTimeInterval(String timeInterval) voidwrite(byte[] b) Writes b.length bytes from the specified byte array to this output stream.voidwrite(byte[] b, int off, int len) Writes len bytes from the specified byte array starting at offset off to this output stream.voidwrite(int b) Writes the specified byte to this output stream.Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
LogPrintStream
-
-
Method Details
-
setTimeInterval
-
close
Closes this output stream and releases any system resources associated with this stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
Flushes this output stream and forces any buffered output bytes to be written out.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
Writes len bytes from the specified byte array starting at offset off to this output stream.- Overrides:
writein classOutputStream- Throws:
IOException
-
write
Writes the specified byte to this output stream.- Specified by:
writein classOutputStream- Throws:
IOException
-
write
Writes b.length bytes from the specified byte array to this output stream.- Overrides:
writein classOutputStream- Throws:
IOException
-