Creates a new filtered reader. The contents of the passed-in reader
are expected to be the name of the class from which to produce a
list of constants.
Parameters:
in - A Reader object providing the underlying stream.
Must not be null.
Method Detail
read
public final int read()
throws java.io.IOException
Reads and assembles the constants declared in a class file.
Overrides:
read in class java.io.FilterReader
Returns:
the next character in the list of constants, 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, or if the constants for the specified class cannot
be read (for example due to the class not being found).
chain
public final java.io.Reader chain(java.io.Reader rdr)
Creates a new ClassConstants using the passed in
Reader for instantiation.