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 TypeMethodDescriptionvoid
close()
Closes this file output stream and releases any system resources associated with this stream.static String
void
setFileName
(String logFileName) void
void
write
(byte[] b) Writes b.length bytes from the specified byte array to this file output stream.void
write
(byte[] b, int off, int len) Writes len bytes from the specified byte array starting at offset off to this file output stream.void
write
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
setFileName
-
setUserInterface
-
write
Writes b.length bytes from the specified byte array to this file output stream.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
Writes len bytes from the specified byte array starting at offset off to this file output stream.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
Writes the specified byte to this file output stream.- Specified by:
write
in classOutputStream
- Throws:
IOException
-
makeTimestamp
-