org.apache.xml.resolver.readers
public class TextCatalogReader extends Object implements CatalogReader
Parses plain text Catalog files.
This class reads plain text Open Catalog files.
Version: 1.0
| Field Summary | |
|---|---|
| protected boolean | caseSensitive Are keywords in the catalog case sensitive? |
| protected InputStream | catfile The input stream used to read the catalog |
| protected int[] | stack
Character lookahead stack. |
| protected Stack | tokenStack
Token stack. |
| protected int | top The current position on the lookahead stack |
| Constructor Summary | |
|---|---|
| TextCatalogReader() Construct a CatalogReader object. | |
| Method Summary | |
|---|---|
| protected void | finalize() The destructor. Makes sure the catalog file is closed. |
| boolean | getCaseSensitive() |
| protected int | nextChar() Return the next logical character from the input stream. |
| protected String | nextToken() Return the next token in the catalog file. |
| void | readCatalog(Catalog catalog, String fileUrl) Start parsing a text catalog file. |
| void | readCatalog(Catalog catalog, InputStream is) |
| void | setCaseSensitive(boolean isCaseSensitive) |
Construct a CatalogReader object.
The destructor.
Makes sure the catalog file is closed.
Return the next logical character from the input stream.
Returns: The next (logical) character from the input stream. The character may be buffered from a previous lookahead.
Throws: IOException If an error occurs reading from the stream.
Return the next token in the catalog file.
Returns: The Catalog file token from the input stream.
Throws: IOException If an error occurs reading from the stream.
Start parsing a text catalog file. The file is
actually read and parsed
as needed by nextEntry.
Parameters: fileUrl The URL or filename of the catalog file to process
Throws: MalformedURLException Improper fileUrl IOException Error reading catalog file