public class HecOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
HecOutputStream(java.io.File file) |
HecOutputStream(java.io.File file,
boolean append) |
HecOutputStream(java.lang.String name) |
HecOutputStream(java.lang.String name,
boolean append) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this file output stream and releases any system resources associated with this stream.
|
static java.lang.String |
makeTimestamp() |
void |
setFileName(java.lang.String logFileName) |
void |
setUserInterface(UserInterface ui) |
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.
|
public HecOutputStream(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic HecOutputStream(java.lang.String name,
boolean append)
throws java.io.IOException
java.io.IOExceptionpublic HecOutputStream(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic HecOutputStream(java.io.File file,
boolean append)
throws java.io.IOException
java.io.IOExceptionpublic 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 setFileName(java.lang.String logFileName)
public void setUserInterface(UserInterface ui)
public void write(byte[] b)
throws java.io.IOException
write 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 static java.lang.String makeTimestamp()