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