public class CommentedFileReader extends java.io.BufferedReader
readLine
functionality of BufferedReader
by ignoring any commented and empty lines.
#
or //
Constructor and Description |
---|
CommentedFileReader(java.io.File f)
Reads from the specified file, using UTF-8 encoding.
|
CommentedFileReader(java.io.Reader r)
Reads from the specified Reader
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
java.lang.String |
readLine() |
public CommentedFileReader(java.io.Reader r) throws java.io.IOException
java.io.IOException
- on error reading from the filepublic CommentedFileReader(java.io.File f) throws java.io.IOException
java.io.IOException
- on error reading from the file