@Immutable @CleanupObligation public final class TFileReader extends InputStreamReader
FileReader
for reading plain old files
or entries in an archive file.
Mind that applications cannot read archive files directly - just their
entries!TFileWriter
Constructor and Description |
---|
TFileReader(File file)
Constructs a new
TFile reader. |
TFileReader(File file,
Charset charset)
Constructs a new
TFile reader. |
TFileReader(File file,
CharsetDecoder decoder)
Constructs a new
TFile reader. |
close, getEncoding, read, read, ready
@CreatesObligation public TFileReader(File file) throws IOException
TFile
reader.
This reader uses the default character set for decoding bytes to
characters.file
- a file to read.IOException
- on any I/O error.@CreatesObligation public TFileReader(File file, Charset charset) throws IOException
TFile
reader.file
- a file to read.charset
- a character set for decoding bytes to characters.IOException
- on any I/O error.@CreatesObligation public TFileReader(File file, CharsetDecoder decoder) throws IOException
TFile
reader.file
- a file to read.decoder
- a decoder for decoding bytes to characters.IOException
- on any I/O error.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.