Package hec.io
Class HecOutputStream
java.lang.Object
java.io.OutputStream
hec.io.HecOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
class to print data to a file and to stdout
-
Constructor Summary
ConstructorsConstructorDescriptionHecOutputStream(File file) HecOutputStream(File file, boolean append) HecOutputStream(String name) HecOutputStream(String name, boolean append) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this file output stream and releases any system resources associated with this stream.static StringvoidsetFileName(String logFileName) voidvoidwrite(byte[] b) Writes b.length bytes from the specified byte array to this file output stream.voidwrite(byte[] b, int off, int len) Writes len bytes from the specified byte array starting at offset off to this file output stream.voidwrite(int b) Writes the specified byte to this file output stream.Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
HecOutputStream
- Throws:
IOException
-
HecOutputStream
- Throws:
IOException
-
HecOutputStream
- Throws:
IOException
-
HecOutputStream
- Throws:
IOException
-
-
Method Details
-
close
Closes this file output stream and releases any system resources associated with this stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
setFileName
-
setUserInterface
-
write
Writes b.length bytes from the specified byte array to this file output stream.- Overrides:
writein classOutputStream- Throws:
IOException
-
write
Writes len bytes from the specified byte array starting at offset off to this file output stream.- Overrides:
writein classOutputStream- Throws:
IOException
-
write
Writes the specified byte to this file output stream.- Specified by:
writein classOutputStream- Throws:
IOException
-
makeTimestamp
-