FileDocCategorySizeDatePackage
CatalogReader.javaAPI DocJava SE 6 API2861Tue Jun 10 00:23:00 BST 2008com.sun.org.apache.xml.internal.resolver.readers

CatalogReader

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.

see
Catalog
author
Norman Walsh Norman.Walsh@Sun.COM
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public voidreadCatalog(com.sun.org.apache.xml.internal.resolver.Catalog catalog, java.lang.String fileUrl)
Read a catalog from a file.

This class reads a catalog from a URL.

param
catalog The catalog for which this reader is called.
param
fileUrl The URL of a document to be read.
throws
MalformedURLException if the specified URL cannot be turned into a URL object.
throws
IOException if the URL cannot be read.
throws
UnknownCatalogFormatException if the catalog format is not recognized.
throws
UnparseableCatalogException if the catalog cannot be parsed. (For example, if it is supposed to be XML and isn't well-formed.)

public voidreadCatalog(com.sun.org.apache.xml.internal.resolver.Catalog catalog, java.io.InputStream is)
Read a catalog from an input stream.

This class reads a catalog from an input stream.

param
catalog The catalog for which this reader is called.
param
is The input stream that is to be read.
throws
IOException if the URL cannot be read.
throws
UnknownCatalogFormatException if the catalog format is not recognized.
throws
UnparseableCatalogException if the catalog cannot be parsed. (For example, if it is supposed to be XML and isn't well-formed.)