org.apache.xml.resolver.readers
public class TextCatalogReader extends Object implements CatalogReader
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.
|
| 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) |
Makes sure the catalog file is closed.
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.
Returns: The Catalog file token from the input stream.
Throws: IOException If an error occurs reading from the stream.
nextEntry.
Parameters: fileUrl The URL or filename of the catalog file to process
Throws: MalformedURLException Improper fileUrl IOException Error reading catalog file