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

Constructor Index

 o SimpleCatalog()
Constructor without parameters (creates empty catalog)
 o SimpleCatalog(String)
Constructor loading a catalog

Method Index

 o loadCatalog(Reader)
Loads a catalog from the given Reader (appending it to the existing entries)
 o loadCatalog(String)
Loads the named catalog (appending it to the existing entries)
 o resolveEntity(String, String)
Resolves an entity reference (implements EntityResolver)

Constructors

 o SimpleCatalog
 public SimpleCatalog()
Constructor without parameters (creates empty catalog)

 o SimpleCatalog
 public SimpleCatalog(String file)
Constructor loading a catalog

Parameters:
file - the file of the catalog to load

Methods

 o loadCatalog
 public void loadCatalog(String file)
Loads the named catalog (appending it to the existing entries)

Parameters:
file - the file to load
 o 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
 o 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