Save This Page
Home » openjdk-7 » com.sun.org.apache.xml.internal » resolver » readers » [javadoc | source]
com.sun.org.apache.xml.internal.resolver.readers
public class: TextCatalogReader [javadoc | source]
java.lang.Object
   com.sun.org.apache.xml.internal.resolver.readers.TextCatalogReader

All Implemented Interfaces:
    CatalogReader

Direct Known Subclasses:
    TR9401CatalogReader

Parses plain text Catalog files.

This class reads plain text Open Catalog files.

Field Summary
protected  InputStream catfile    The input stream used to read the catalog 
protected  int[] stack    Character lookahead stack. Reading a catalog sometimes requires up to two characters of lookahead. 
protected  Stack tokenStack    Token stack. Recognizing an unexpected catalog entry requires the ability to "push back" a token. 
protected  int top    The current position on the lookahead stack 
protected  boolean caseSensitive    Are keywords in the catalog case sensitive? 
Constructor:
 public TextCatalogReader() 
Method from com.sun.org.apache.xml.internal.resolver.readers.TextCatalogReader Summary:
finalize,   getCaseSensitive,   nextChar,   nextToken,   readCatalog,   readCatalog,   setCaseSensitive
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.org.apache.xml.internal.resolver.readers.TextCatalogReader Detail:
 protected  void finalize() 
    The destructor.

    Makes sure the catalog file is closed.

 public boolean getCaseSensitive() 
 protected int nextChar() throws IOException 
    Return the next logical character from the input stream.
 protected String nextToken() throws IOException, CatalogException 
    Return the next token in the catalog file.

    FYI: This code does not throw any sort of exception for a file that contains an n

 public  void readCatalog(Catalog catalog,
    String fileUrl) throws MalformedURLException, IOException 
    Start parsing a text catalog file. The file is actually read and parsed as needed by nextEntry.

 public  void readCatalog(Catalog catalog,
    InputStream is) throws MalformedURLException, IOException 
 public  void setCaseSensitive(boolean isCaseSensitive)