org.apache.xerces.impl
Class XML11EntityManager

java.lang.Object
  |
  +--org.apache.xerces.impl.XMLEntityManager
        |
        +--org.apache.xerces.impl.XML11EntityManager
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLEntityResolver

public class XML11EntityManager
extends XMLEntityManager

The entity manager handles the registration of general and parameter entities; resolves entities; and starts entities. The entity manager is a central component in a standard parser configuration and this class works directly with the entity scanner to manage the underlying xni.

This component requires the following features and properties from the component manager that uses it:

Version:
$Id: XML11EntityManager.java,v 1.2 2002/09/16 21:23:49 neilg Exp $
Author:
Andy Clark, IBM, Arnaud Le Hors, IBM

Inner Class Summary
protected  class XML11EntityManager.XML11EntityScanner
          Implements the entity scanner methods.
 
Inner classes inherited from class org.apache.xerces.impl.XMLEntityManager
XMLEntityManager.Entity, XMLEntityManager.EntityScanner, XMLEntityManager.ExternalEntity, XMLEntityManager.InternalEntity, XMLEntityManager.RewindableInputStream, XMLEntityManager.ScannedEntity
 
Fields inherited from class org.apache.xerces.impl.XMLEntityManager
ALLOW_JAVA_ENCODINGS, BUFFER_SIZE, DEFAULT_BUFFER_SIZE, DEFAULT_INTERNAL_BUFFER_SIZE, DEFAULT_XMLDECL_BUFFER_SIZE, ENTITY_RESOLVER, ERROR_REPORTER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, fAllowJavaEncodings, fBufferSize, fCurrentEntity, fDeclaredEntities, fEntities, fEntityHandler, fEntityResolver, fEntityScanner, fEntityStack, fErrorReporter, fExternalGeneralEntities, fExternalParameterEntities, fInExternalSubset, fOwnReaders, fStandalone, fSymbolTable, fValidation, fValidationManager, fWarnDuplicateEntityDef, SYMBOL_TABLE, VALIDATION, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ENTITYDEF
 
Constructor Summary
XML11EntityManager()
          Default constructor.
XML11EntityManager(XMLEntityManager entityManager)
          Constructs an entity manager that shares the specified entity declarations during each parse.
 
Method Summary
protected  XMLEntityScanner createEntityScanner()
           
 
Methods inherited from class org.apache.xerces.impl.XMLEntityManager
addExternalEntity, addInternalEntity, addUnparsedEntity, closeReaders, createReader, endEntity, endExternalSubset, expandSystemId, expandSystemId, fixURI, getEncodingName, getEntityScanner, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, isDeclaredEntity, isEntityDeclInExternalSubset, isExternalEntity, isStandalone, isUnparsedEntity, reset, resolveEntity, setEntityHandler, setFeature, setProperty, setStandalone, startDocumentEntity, startDTDEntity, startEntity, startEntity, startExternalSubset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML11EntityManager

public XML11EntityManager()
Default constructor.

XML11EntityManager

public XML11EntityManager(XMLEntityManager entityManager)
Constructs an entity manager that shares the specified entity declarations during each parse.

REVISIT: We might want to think about the "right" way to expose the list of declared entities. For now, the knowledge how to access the entity declarations is implicit.

Method Detail

createEntityScanner

protected XMLEntityScanner createEntityScanner()
Overrides:
createEntityScanner in class XMLEntityManager


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.