| com.sun.org.apache.xml.internal.resolver.readers.CatalogReader
All known Subclasses: com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader, com.sun.org.apache.xml.internal.resolver.readers.TextCatalogReader, com.sun.org.apache.xml.internal.resolver.readers.DOMCatalogReader,
CatalogReader | public interface CatalogReader (Code) | | 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 Also: Catalog author: Norman Walsh author: Norman.Walsh@Sun.COM version: 1.0 |
readCatalog | public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException, CatalogException(Code) | | Read a catalog from a file.
This class reads a catalog from a URL.
Parameters: catalog - The catalog for which this reader is called. Parameters: fileUrl - The URL of a document to be read. throws: MalformedURLException - if the specified URL cannot beturned into a URL object. throws: IOException - if the URL cannot be read. throws: UnknownCatalogFormatException - if the catalog format isnot recognized. throws: UnparseableCatalogException - if the catalog cannot be parsed.(For example, if it is supposed to be XML and isn't well-formed.) |
readCatalog | public void readCatalog(Catalog catalog, InputStream is) throws IOException, CatalogException(Code) | | Read a catalog from an input stream.
This class reads a catalog from an input stream.
Parameters: catalog - The catalog for which this reader is called. Parameters: is - The input stream that is to be read. throws: IOException - if the URL cannot be read. throws: UnknownCatalogFormatException - if the catalog format isnot recognized. throws: UnparseableCatalogException - if the catalog cannot be parsed.(For example, if it is supposed to be XML and isn't well-formed.) |
|
|