chain(java.io.Reader rdr)
Creates a new StripLineComments using the passed in
Reader for instantiation.
int
read()
Returns the next character in the filtered stream, only including
lines from the original stream which don't start with any of the
specified comment prefixes.
in - A Reader object providing the underlying stream.
Must not be null.
Method Detail
read
public final int read()
throws java.io.IOException
Returns the next character in the filtered stream, only including
lines from the original stream which don't start with any of the
specified comment prefixes.
Overrides:
read in class java.io.FilterReader
Returns:
the next character in the resulting stream, or -1
if the end of the resulting stream has been reached
Throws:
java.io.IOException - if the underlying stream throws an IOException
during reading