This component requires the following features and properties from the component manager that uses it:
| Modifier and Type | Class and Description |
|---|---|
| private static class | XMLEntityManager.ByteBufferPool
Pool of byte buffers for the java.io.Readers. |
| private static class | XMLEntityManager.CharacterBuffer
Buffer used in entity manager to reuse character arrays instead of creating new ones every time. |
| private static class | XMLEntityManager.CharacterBufferPool
Stores a number of character buffers and provides it to the entity manager to use when an entity is seen. |
| private static class | XMLEntityManager.EncodingInfo
Information about auto-detectable encodings. |
| public abstract static class | XMLEntityManager.Entity
Entity information. |
| protected static class | XMLEntityManager.ExternalEntity
External entity. |
| protected static class | XMLEntityManager.InternalEntity
Internal entity. |
| protected class | XMLEntityManager.RewindableInputStream
This class wraps the byte inputstreams we're presented with. |
| public class | XMLEntityManager.ScannedEntity
Entity state. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | ALLOW_JAVA_ENCODINGS
Feature identifier: allow Java encodings. |
| protected static final String | BUFFER_SIZE
property identifier: buffer size. |
| private static final boolean | DEBUG_BUFFER
Debug printing of buffer. |
| private static final boolean | DEBUG_ENCODINGS
Debug switching readers for encodings. |
| private static final boolean | DEBUG_ENTITIES
Debug some basic entities. |
| private static final boolean | |
| public static final int | DEFAULT_BUFFER_SIZE
Default buffer size (2048). |
| public static final int | DEFAULT_INTERNAL_BUFFER_SIZE
Default internal entity buffer size (512). |
| public static final int | DEFAULT_XMLDECL_BUFFER_SIZE
Default buffer size before we've finished with the XMLDecl: |
| private static final String | |
| protected static final String | ENTITY_RESOLVER
Property identifier: entity resolver. |
| protected static final String | ERROR_REPORTER
Property identifier: error reporter. |
| protected static final String | EXTERNAL_GENERAL_ENTITIES
Feature identifier: external general entities. |
| protected static final String | EXTERNAL_PARAMETER_ENTITIES
Feature identifier: external parameter entities. |
| protected boolean | fAllowJavaEncodings
Allow Java encoding names. |
| protected int | fBufferSize
Buffer size. |
| private final XMLEntityManager. | fCharacterBufferPool
Pool of character buffers. |
| protected XMLEntityManager. | fCurrentEntity
Current entity. |
| protected Hashtable | fDeclaredEntities
Shared declared entities. |
| private static final Boolean[] | FEATURE_DEFAULTS
Feature defaults. |
| protected final Hashtable | fEntities
Entities. |
| private final Augmentations | fEntityAugs
Augmentations for entities. |
| protected int | |
| protected int | |
| protected XMLEntityHandler | fEntityHandler
Entity handler. |
| protected XMLEntityResolver | fEntityResolver
Entity resolver. |
| protected XMLEntityScanner | fEntityScanner
Current entity scanner. |
| protected final Stack | fEntityStack
Entity stack. |
| protected XMLErrorReporter | fErrorReporter
Error reporter. |
| protected boolean | fExternalGeneralEntities
External general entities. |
| protected boolean | fExternalParameterEntities
External parameter entities. |
| protected boolean | fHasPEReferences
True if the current document contains parameter entity references. |
| protected boolean | |
| private final XMLEntityManager. | fLargeByteBufferPool
Pool of byte buffers for 2-byte encodings, such as UTF-16. |
| protected Stack | |
| private final XMLResourceIdentifierImpl | fResourceIdentifier
Resource identifier. |
| protected SecurityManager | |
| private final XMLEntityManager. | fSmallByteBufferPool
Pool of byte buffers for single byte and variable width encodings, such as US-ASCII and UTF-8. |
| protected boolean | fStandalone
True if the document entity is standalone. |
| protected boolean | fStrictURI
standard uri conformant (strict uri). |
| protected SymbolTable | fSymbolTable
Symbol table. |
| private byte[] | fTempByteBuffer
Temporary storage for the current entity's byte buffer. |
| protected boolean | fValidation
Validation. |
| protected ValidationManager | fValidationManager
Validation manager. |
| protected boolean | fWarnDuplicateEntityDef
warn on duplicate Entity declaration. |
| protected XMLEntityScanner | fXML10EntityScanner
XML 1.0 entity scanner. |
| protected XMLEntityScanner | fXML11EntityScanner
XML 1.1 entity scanner. |
| private static final char[] | |
| private static final char[] | |
| private static PrivilegedAction | |
| private static final char[] | |
| private static final boolean[] | |
| private static String | |
| private static URI | |
| protected static final String | |
| private static final Object[] | PROPERTY_DEFAULTS
Property defaults. |
| private static final String[] | RECOGNIZED_FEATURES
Recognized features. |
| private static final String[] | RECOGNIZED_PROPERTIES
Recognized properties. |
| protected static final String | SECURITY_MANAGER
property identifier: security manager. |
| protected static final String | STANDARD_URI_CONFORMANT
Feature identifier: standard uri conformant |
| protected static final String | SYMBOL_TABLE
Property identifier: symbol table. |
| protected static final String | VALIDATION
Feature identifier: validation. |
| protected static final String | |
| protected static final String | WARN_ON_DUPLICATE_ENTITYDEF
Feature identifier: warn on duplicate EntityDef |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XMLEntityManager(XMLEntityManager entityManager)
Constructs an entity manager that shares the specified entity declarations during each parse. |
| Modifier and Type | Method and Description |
|---|---|
| public static void | absolutizeAgainstUserDir(URI
the URI to absolutize uri)Absolutizes a URI using the current value of the "user.dir" property as the base URI. |
| public void | addExternalEntity(String
The name of the entity. name, String The public identifier of the entity. publicId, String The system identifier of the entity. literalSystemId, String The base system identifier of the entity.
This is the system identifier of the entity
where the entity being added and
is used to expand the system identifier when
the system identifier is a relative URI.
When null the system identifier of the first
external entity on the stack is used instead. baseSystemId)Adds an external entity declaration. |
| public void | addInternalEntity(String
The name of the entity. name, String The text of the entity. text, int Count of direct and indirect references to parameter entities in the value of the entity. paramEntityRefs)Adds an internal entity declaration. |
| public void | addInternalEntity(String
The name of the entity. name, String The text of the entity. text)Adds an internal entity declaration. |
| public void | |
| public void | |
| private Reader | |
| private Reader | |
| public static OutputStream | |
| protected Reader | Returns: Returns a reader.The input stream. inputStream, String The encoding name that the input stream is
encoded using. If the user has specified that
Java encoding names are allowed, then the
encoding name may be a Java encoding name;
otherwise, it is an ianaEncoding name. encoding, Boolean For encodings (like uCS-4), whose names cannot
specify a byte order, this tells whether the order is bigEndian. Null means
unknown or not relevant. isBigEndian)Creates a reader capable of reading the given input stream in the specified encoding. |
| private Reader | createUTF16Reader(InputStream stream, boolean isBigEndian)
Create a new UTF-16 reader from the InputStream. |
| private Reader | |
| pack-priv void | |
| public void | |
| public static String | Returns: Returns the URI string representing the expanded system identifier. A null value indicates that the given system identifier is already expanded.The systemId to be expanded. systemId, String baseSystemId, boolean strict)Expands a system id and returns the system id as a URI, if it can be expanded. |
| private static String | expandSystemIdStrictOff(String systemId, String baseSystemId)
Helper method for expandSystemId(String,String,boolean):String |
| private static String | expandSystemIdStrictOn(String systemId, String baseSystemId)
Helper method for expandSystemId(String,String,boolean):String |
| protected static String | |
| public XMLEntityManager. | |
| public XMLResourceIdentifier | |
| pack-priv Hashtable | |
| protected XMLEntityManager. | Returns: an instance of EncodingInfo which represents the auto-detected encoding.The first four bytes of the input. b4, int The number of bytes actually read. count)Returns the IANA encoding name that is auto-detected from the bytes specified, with the endian-ness of that encoding where appropriate. |
| public XMLEntityScanner | |
| public Boolean | getFeatureDefault(String
The feature identifier. featureId)Implements org. |
| public int | Returns: Count of direct and indirect references to parameter entities in the value of the entityThe name of the entity to check. entityName)Returns the number of direct and indirect references to parameter entities in the value of the entity. |
| private static String | |
| public Object | getPropertyDefault(String
The property identifier. propertyId)Implements org. |
| public String[] | getRecognizedFeatures()
Implements org. |
| public String[] | getRecognizedProperties()
Implements org. |
| private static synchronized URI | |
| pack-priv final boolean | |
| public boolean | Returns: True if the entity is declared, false otherwise.The name of the entity to check. entityName)Checks whether an entity given by name is declared. |
| public boolean | Returns: True if the entity was declared in the external subset, false otherwise (including when the entity is not declared).The name of the entity to check. entityName)Checks whether the declaration of an entity given by name is // in the external subset. |
| public boolean | Returns: True if the entity is external, false otherwise (including when the entity is not declared).The name of the entity to check. entityName)Checks whether an entity given by name is external. |
| public boolean | |
| public boolean | Returns: True if the entity is unparsed, false otherwise (including when the entity is not declared).The name of the entity to check. entityName)Checks whether an entity given by name is unparsed. |
| pack-priv final void | notifyHasPEReferences()
Notifies the entity manager that the current document being processed contains parameter entity references. |
| pack-priv static final void | |
| public void | reset(XMLComponentManager
The component manager. componentManager)Implements org. |
| public void | |
| public XMLInputSource | Returns: Returns an input source that wraps the resolved entity. This method will never return null.The XMLResourceIdentifier for the resource to resolve. resourceIdentifier)Implements org. |
| public void | |
| public void | setFeature(String
The feature identifier. featureId, boolean The state of the feature. state)Implements org. |
| public void | setProperty(String
The property identifier. propertyId, Object The value of the property. value)Implements org. |
| public void | |
| public void | setStandalone(boolean
True if document entity is standalone. standalone)Sets whether the document entity is standalone. |
| public String | Returns: the encoding of the new entity or null if a character stream was employedname of the entity (XML is it's the document entity) name, XMLInputSource the input source, with sufficient information
to begin scanning characters. xmlInputSource, boolean True if this entity is started within a
literal value. literal, boolean whether this entity should be treated as an internal or external entity. isExternal)This method uses the passed-in XMLInputSource to make fCurrentEntity usable for reading. |
| public void | startDocumentEntity(XMLInputSource
The input source of the document entity. xmlInputSource)Starts the document entity. |
| public void | startDTDEntity(XMLInputSource
The input source of the DTD entity. xmlInputSource)Starts the DTD entity. |
| public void | startEntity(String
The name of the entity to start. entityName, boolean True if this entity is started within a literal
value. literal)Starts a named entity. |
| public void | startEntity(String
The name of the entity. name, XMLInputSource The input source of the entity. xmlInputSource, boolean True if this entity is started within a
literal value. literal, boolean whether this entity should be treated as an internal or external entity. isExternal)Starts an entity. |
| public void |