public interface CatalogReader
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.
Catalog
Modifier and Type | Method and Description |
---|---|
void |
readCatalog(Catalog catalog,
InputStream is)
Read a catalog from an input stream.
|
void |
readCatalog(Catalog catalog,
String fileUrl)
Read a catalog from a file.
|
void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException, CatalogException
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.MalformedURLException
- if the specified URL cannot be
turned into a URL object.IOException
- if the URL cannot be read.CatalogException
- for any errorvoid readCatalog(Catalog catalog, InputStream is) throws IOException, CatalogException
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.IOException
- if the URL cannot be read.CatalogException
- for any errorCopyright © 2018 JBoss by Red Hat. All rights reserved.