org.apache.xml.resolver.readers
Interface CatalogReader
- DOMCatalogReader, ExtendedXMLCatalogReader, OASISXMLCatalogReader, SAXCatalogReader, TextCatalogReader, TR9401CatalogReader, XCatalogReader
public interface CatalogReader
The CatalogReader interface.
The Catalog class requires that classes implement this interface
in order to be used to read catalogs. Examples of CatalogReaders
include the TextCatalogReader, the SAXCatalogReader, and the
DOMCatalogReader.
readCatalog
public void readCatalog(Catalog catalog,
InputStream is)
throws IOException,
CatalogException
Read a catalog from an input stream.
This class reads a catalog from an input stream.
catalog
- The catalog for which this reader is called.is
- The input stream that is to be read.
readCatalog
public void readCatalog(Catalog catalog,
String fileUrl)
throws MalformedURLException,
IOException,
CatalogException
Read a catalog from a file.
This class reads a catalog from a URL.
catalog
- The catalog for which this reader is called.fileUrl
- The URL of a document to be read.
Copyright B) 2001-2003 Apache Software Foundation. All Rights Reserved.