All Packages Class Hierarchy This Package Previous Next Index
Class xslp.xml.parsers.SimpleCatalog
xslp.xml.parsers.SimpleCatalog
- public class SimpleCatalog
Implementation of a simple catalog based on property files.
Sample of such a catalog file:
# DTD pour les textes des documents du site
-//EOR//DTD texte//FR=file:///home/casa/doc/eor/site/projet/source/dtds/texte.dtd
-//EOR//DTD livre//FR=file:///home/casa/doc/eor/site/projet/source/dtds/livre.dtd
# DTD pour les articles
-//EOR//DTD article//FR=file:///home/casa/doc/eor/site/projet/source/dtds/article.dtd
# DTD pour les brèves
-//EOR//DTD breve//FR=file:///home/casa/doc/eor/site/projet/source/dtds/breve.dtd
# DTD pour l'index du site
-//EOR//DTD index//FR=file:///home/casa/doc/eor/site/projet/source/dtds/index.dtd
- Author:
- Michel Casabianca
-
SimpleCatalog()
- Constructor without parameters (creates empty catalog)
-
SimpleCatalog(String)
- Constructor loading a catalog
-
loadCatalog(Reader)
- Loads a catalog from the given Reader
(appending it to the existing entries)
-
loadCatalog(String)
- Loads the named catalog (appending it to the existing entries)
-
resolveEntity(String, String)
- Resolves an entity reference (implements EntityResolver)
SimpleCatalog
public SimpleCatalog()
- Constructor without parameters (creates empty catalog)
SimpleCatalog
public SimpleCatalog(String file)
- Constructor loading a catalog
- Parameters:
- file - the file of the catalog to load
loadCatalog
public void loadCatalog(String file)
- Loads the named catalog (appending it to the existing entries)
- Parameters:
- file - the file to load
loadCatalog
public void loadCatalog(Reader reader)
- Loads a catalog from the given Reader
(appending it to the existing entries)
- Parameters:
- reader - the Reader to load the catalog from
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
- Resolves an entity reference (implements EntityResolver)
- Parameters:
- publicId - the public id
- systemId - the system id
- Returns:
- input source corresponding to the entity
All Packages Class Hierarchy This Package Previous Next Index