com.sun.resolver.readers
Class TR9401CatalogReader

java.lang.Object
  extended bycom.sun.resolver.readers.TextCatalogReader
      extended bycom.sun.resolver.readers.TR9401CatalogReader
All Implemented Interfaces:
CatalogReader

public class TR9401CatalogReader
extends TextCatalogReader

Parses OASIS Open Catalog files.

Copyright © 2000, 2001 Sun Microsystems, Inc. All Rights Reserved. This software is the proprietary information of Sun Microsystems, Inc. Use is subject to license terms.

This class reads OASIS Open Catalog files, returning a stream of tokens.

This code interrogates the following non-standard system properties:

xml.catalog.debug

Sets the debug level. A value of 0 is assumed if the property is not set or is not a number.

Version:
1.0
Author:
Norman Walsh Norman.Walsh@Sun.COM
See Also:
Catalog

Field Summary
 
Fields inherited from class com.sun.resolver.readers.TextCatalogReader
caseSensitive, catfile, stack, tokenStack, top
 
Constructor Summary
TR9401CatalogReader()
           
 
Method Summary
 void readCatalog(Catalog catalog, java.io.InputStream is)
          Start parsing an OASIS TR9401 Open Catalog file.
 
Methods inherited from class com.sun.resolver.readers.TextCatalogReader
finalize, getCaseSensitive, nextChar, nextToken, readCatalog, setCaseSensitive
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TR9401CatalogReader

public TR9401CatalogReader()
Method Detail

readCatalog

public void readCatalog(Catalog catalog,
                        java.io.InputStream is)
                 throws java.net.MalformedURLException,
                        java.io.IOException

Start parsing an OASIS TR9401 Open Catalog file. The file is actually read and parsed as needed by nextEntry.

In a TR9401 Catalog the 'DELEGATE' entry delegates public identifiers. There is no delegate entry for system identifiers or URIs.

Specified by:
readCatalog in interface CatalogReader
Overrides:
readCatalog in class TextCatalogReader
Throws:
java.net.MalformedURLException - Improper fileUrl
java.io.IOException - Error reading catalog file