org.apache.xml.resolver.readers
Class TextCatalogReader

java.lang.Object
  extended by org.apache.xml.resolver.readers.TextCatalogReader
All Implemented Interfaces:
CatalogReader
Direct Known Subclasses:
TR9401CatalogReader

public class TextCatalogReader
extends java.lang.Object
implements CatalogReader

Parses plain text Catalog files.

This class reads plain text Open Catalog files.

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

Constructor Summary
TextCatalogReader()
          Construct a CatalogReader object.
 
Method Summary
 boolean getCaseSensitive()
           
 void readCatalog(Catalog catalog, java.io.InputStream is)
          Read a catalog from an input stream.
 void readCatalog(Catalog catalog, java.lang.String fileUrl)
          Start parsing a text catalog file.
 void setCaseSensitive(boolean isCaseSensitive)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCatalogReader

public TextCatalogReader()
Construct a CatalogReader object.

Method Detail

setCaseSensitive

public void setCaseSensitive(boolean isCaseSensitive)

getCaseSensitive

public boolean getCaseSensitive()

readCatalog

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

Specified by:
readCatalog in interface CatalogReader
Parameters:
fileUrl - The URL or filename of the catalog file to process
catalog - The catalog for which this reader is called.
Throws:
java.net.MalformedURLException - Improper fileUrl
java.io.IOException - Error reading catalog file

readCatalog

public void readCatalog(Catalog catalog,
                        java.io.InputStream is)
                 throws java.net.MalformedURLException,
                        java.io.IOException
Description copied from interface: CatalogReader
Read a catalog from an input stream.

This class reads a catalog from an input stream.

Specified by:
readCatalog in interface CatalogReader
Parameters:
catalog - The catalog for which this reader is called.
is - The input stream that is to be read.
Throws:
java.io.IOException - if the URL cannot be read.
java.net.MalformedURLException