@Immutable @CleanupObligation public final class TFileWriter extends OutputStreamWriter
FileWriter for writing plain old files
or entries in an archive file.
Mind that applications cannot write archive files directly - just their
entries!TConfig.setLenient(boolean),
TFileReader| Constructor and Description |
|---|
TFileWriter(File file)
Constructs a new
TFile writer. |
TFileWriter(File file,
boolean append)
Constructs a new
TFile writer. |
TFileWriter(File file,
boolean append,
Charset charset)
Constructs a new
TFile writer. |
TFileWriter(File file,
boolean append,
CharsetEncoder encoder)
Constructs a new
TFile writer. |
TFileWriter(TFile file)
Constructs a new
TFile writer. |
TFileWriter(TFile file,
boolean append)
Constructs a new
TFile writer. |
TFileWriter(TFile file,
boolean append,
CharsetEncoder encoder)
Constructs a new
TFile writer. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
flush, getEncoding, write, write, write@CreatesObligation public TFileWriter(File file) throws FileNotFoundException
TFile writer.
This writer uses the default character set for encoding characters
to bytes.file - a file to write.FileNotFoundException - on any I/O failure.@CreatesObligation public TFileWriter(File file, boolean append) throws FileNotFoundException
TFile writer.
This writer uses the default character set for encoding characters
to bytes.file - a file to write.append - iff true, then this writer appends the data to the
given file.FileNotFoundException - on any I/O failure.@CreatesObligation public TFileWriter(File file, boolean append, Charset charset) throws FileNotFoundException
TFile writer.file - a file to write.append - iff true, then this writer appends the data to the
given file.charset - a character set for encoding characters to bytes.FileNotFoundException - on any I/O failure.@CreatesObligation public TFileWriter(File file, boolean append, CharsetEncoder encoder) throws FileNotFoundException
TFile writer.file - a file to write.append - iff true, then this writer appends the data to the
given file.encoder - an encoder for encoding characters to bytes.FileNotFoundException - on any I/O failure.@CreatesObligation public TFileWriter(TFile file) throws FileNotFoundException
TFile writer.
This writer uses the default character set for encoding characters
to bytes.
TODO: Remove this redundant constructor in TrueZIP 8.
file - a file to write.FileNotFoundException - on any I/O failure.@CreatesObligation public TFileWriter(TFile file, boolean append) throws FileNotFoundException
TFile writer.
This writer uses the default character set for encoding characters
to bytes.
TODO: Remove this redundant constructor in TrueZIP 8.
file - a file to write.append - iff true, then this writer appends the data to the
given file.FileNotFoundException - on any I/O failure.@CreatesObligation public TFileWriter(TFile file, boolean append, CharsetEncoder encoder) throws FileNotFoundException
TFile writer.
TODO: Remove this redundant constructor in TrueZIP 8.
file - a file to write.append - iff true, then this writer appends the data to the
given file.encoder - an encoder for encoding characters to bytes.FileNotFoundException - on any I/O failure.@DischargesObligation
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamWriterIOExceptionCopyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.