public class SortedFileOutputStream extends FileOutputStream
Constructor and Description |
---|
SortedFileOutputStream(File file)
CT
|
Modifier and Type | Method and Description |
---|---|
void |
close()
If internally stored content is available, sorting keys of content, then sending content to file.
|
void |
flush()
Catch
flush method, don't do nothing |
void |
setLogger(LogChannelInterface log)
Setter
|
void |
write(byte[] b)
Appending to internal StringBuffer, instead of immediately writing to the file
|
void |
write(byte[] b,
int off,
int len)
Appending to internal StringBuffer, instead of immediately writing to the file
|
void |
write(int b)
Appending to internal StringBuffer, instead of immediately writing to the file
|
getChannel, getFD
public SortedFileOutputStream(File file) throws FileNotFoundException
file
- FileNotFoundException
public void setLogger(LogChannelInterface log)
log
- public void write(byte[] b, int off, int len) throws IOException
write
in class FileOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class FileOutputStream
IOException
public void write(int b) throws IOException
write
in class FileOutputStream
IOException
public void flush() throws IOException
flush
method, don't do nothingflush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
FileOutputStream.close()
method.close
in interface Closeable
close
in interface AutoCloseable
close
in class FileOutputStream
IOException