Package eu.bandm.tools.util.files
Class FileInput
java.lang.Object
eu.bandm.tools.util.files.FileInput
- All Implemented Interfaces:
TextInput,AutoCloseable
Subclass which uses a File for input.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CharsetThe encoding to apply when reading the file.(package private) final FileThe file to read.(package private) final StringThe human-read source info, as used in error messages, etc.(package private) final ReaderThe reader constructed for the given file. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
file
The file to read. -
info
The human-read source info, as used in error messages, etc. -
encoding
The encoding to apply when reading the file. -
reader
The reader constructed for the given file.
-
-
Constructor Details
-
FileInput
Only constructor. Opens the file and creates a reader.- Parameters:
file- to readencoding- to use
-
-
Method Details
-
getReader
Deliver the stream of decoded characters. -
getInfo
Deliver a human readable text for the source identification.
-