Class CommentedFileReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
fc.io.CommentedFileReader
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
Extends the
readLine functionality of BufferedReader by ignoring any commented and empty lines.
- comments start with
#or// - empty lines consist of only 0 or more whitespace
-
Constructor Summary
ConstructorsConstructorDescriptionReads from the specified file, using UTF-8 encoding.Reads from the specified Reader -
Method Summary
Methods inherited from class BufferedReader
close, lines, mark, markSupported, read, read, ready, reset, skipMethods inherited from class Reader
nullReader, of, read, read, readAllAsString, readAllLines, transferTo
-
Constructor Details
-
CommentedFileReader
Reads from the specified Reader- Throws:
IOException- on error reading from the file
-
CommentedFileReader
Reads from the specified file, using UTF-8 encoding.- Throws:
IOException- on error reading from the file
-
-
Method Details
-
readLine
- Overrides:
readLinein classBufferedReader- Throws:
IOException
-
main
- Throws:
IOException
-