| java.lang.Object org.apache.xerces.readers.DefaultEntityHandler
All known Subclasses: org.apache.xerces.validators.common.XMLValidator,
Inner Class :public interface EventHandler | |
Inner Class :final public class EntityPool | |
Method Summary | |
public int | addExternalEntityDecl(int name, int publicId, int systemId, boolean isExternal) | public int | addExternalPEDecl(int name, int publicId, int systemId, boolean isExternal) | public int | addInternalEntityDecl(int name, int value, boolean isExternal) | public int | addInternalPEDecl(int name, int value, boolean isExternal) | public int | addNotationDecl(int notationName, int publicId, int systemId, boolean isExternal) | public void | addRecognizer(XMLDeclRecognizer recognizer) Adds a recognizer. | public void | addRequiredNotation(int notationName, Locator locator, int majorCode, int minorCode, Object[] args) | public int | addUnparsedEntityDecl(int name, int publicId, int systemId, int notationName, boolean isExternal) | public XMLEntityHandler.EntityReader | changeReaders() This method is called by the reader subclasses at the
end of input, and also by the scanner directly to force
a reader change during error recovery. | public void | checkRequiredNotations() | public void | endEntityDecl() | public String | expandSystemId(String systemId) Expands a system id and returns the system id as a URI, if
it can be expanded. | public boolean | externalReferenceInContent(int entityHandle) | public boolean | getAllowJavaEncodings() | public XMLEntityHandler.CharDataHandler | getCharDataHandler() | public int | getColumnNumber() Return the column number of the current position within the document that we are processing. | public XMLEntityHandler.EntityReader | getEntityReader() get the Entity reader. | public EntityResolver | getEntityResolver() Gets the resolver used to resolve external entities. | protected int | getEntityValue(int entityHandle) | public int | getLineNumber() Return the line number of the current position within the document that we are processing. | protected int | getParameterEntityValue(int peIndex) | public String | getPublicId() Return the public identifier of the InputSource that we are processing. | protected String | getPublicIdOfEntity(int entityHandle) | protected String | getPublicIdOfParameterEntity(int peIndex) | public int | getReaderDepth() This method is provided for scanner implementations. | public int | getReaderId() This method is provided for scanner implementations. | public String | getSystemId() Return the system identifier of the InputSource that we are processing. | protected String | getSystemIdOfEntity(int entityHandle) | protected String | getSystemIdOfParameterEntity(int peIndex) | protected boolean | isExternalEntity(int entityHandle) | protected boolean | isExternalParameterEntity(int peIndex) | public boolean | isNotationDeclared(int notationName) | public boolean | isUnparsedEntity(int entityName) | protected int | lookupEntity(int entityNameIndex) | protected int | lookupParameterEntity(int peName) | public void | reset(StringPool stringPool) Reset the entity handler. | public void | setAllowJavaEncodings(boolean flag) | public void | setCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler) | public void | setEntityResolver(EntityResolver resolver) Sets the resolver used to resolve external entities. | public void | setEventHandler(EventHandler eventHandler) | public void | setReaderDepth(int depth) This method is provided for scanner implementations. | public void | setReaderFactory(XMLEntityReaderFactory readerFactory) Set the reader factory. | public void | setSendCharDataAsCharArray(boolean flag) Set char data processing preference. | public boolean | startEntityDecl(boolean isPE, int entityName) | public boolean | startReadingFromDocument(InputSource source) | public boolean | startReadingFromEntity(int entityName, int readerDepth, int context) | public void | startReadingFromExternalSubset(String publicId, String systemId, int readerDepth) | public void | stopReadingFromExternalSubset() | protected int | valueOfReferenceInAttValue(int entityHandle) |
CHUNK_MASK | final static int CHUNK_MASK(Code) | | |
CHUNK_SHIFT | final static int CHUNK_SHIFT(Code) | | |
CHUNK_SIZE | final static int CHUNK_SIZE(Code) | | |
INITIAL_CHUNK_COUNT | final static int INITIAL_CHUNK_COUNT(Code) | | |
addExternalEntityDecl | public int addExternalEntityDecl(int name, int publicId, int systemId, boolean isExternal) throws Exception(Code) | | |
addExternalPEDecl | public int addExternalPEDecl(int name, int publicId, int systemId, boolean isExternal) throws Exception(Code) | | |
addInternalEntityDecl | public int addInternalEntityDecl(int name, int value, boolean isExternal) throws Exception(Code) | | |
addInternalPEDecl | public int addInternalPEDecl(int name, int value, boolean isExternal) throws Exception(Code) | | |
addNotationDecl | public int addNotationDecl(int notationName, int publicId, int systemId, boolean isExternal) throws Exception(Code) | | |
addRecognizer | public void addRecognizer(XMLDeclRecognizer recognizer)(Code) | | Adds a recognizer.
Parameters: recognizer - The XML recognizer to add. |
addRequiredNotation | public void addRequiredNotation(int notationName, Locator locator, int majorCode, int minorCode, Object[] args)(Code) | | |
addUnparsedEntityDecl | public int addUnparsedEntityDecl(int name, int publicId, int systemId, int notationName, boolean isExternal) throws Exception(Code) | | |
changeReaders | public XMLEntityHandler.EntityReader changeReaders() throws Exception(Code) | | This method is called by the reader subclasses at the
end of input, and also by the scanner directly to force
a reader change during error recovery.
|
checkRequiredNotations | public void checkRequiredNotations() throws Exception(Code) | | |
endEntityDecl | public void endEntityDecl() throws Exception(Code) | | end an entity declaration
|
expandSystemId | public String expandSystemId(String systemId)(Code) | | Expands a system id and returns the system id as a URI, if
it can be expanded. A return value of null means that the
identifier is already expanded. An exception thrown
indicates a failure to expand the id.
Parameters: systemId - The systemId to be expanded. Returns the URI string representing the expanded systemidentifier. A null value indicates that the givensystem identifier is already expanded. |
externalReferenceInContent | public boolean externalReferenceInContent(int entityHandle) throws Exception(Code) | | |
getAllowJavaEncodings | public boolean getAllowJavaEncodings()(Code) | | |
getColumnNumber | public int getColumnNumber()(Code) | | Return the column number of the current position within the document that we are processing.
The current column number. |
getEntityResolver | public EntityResolver getEntityResolver()(Code) | | Gets the resolver used to resolve external entities. The EntityResolver
interface supports resolution of public and system identifiers.
The current entity resolver. |
getEntityValue | protected int getEntityValue(int entityHandle)(Code) | | |
getLineNumber | public int getLineNumber()(Code) | | Return the line number of the current position within the document that we are processing.
The current line number. |
getParameterEntityValue | protected int getParameterEntityValue(int peIndex)(Code) | | |
getPublicId | public String getPublicId()(Code) | | Return the public identifier of the InputSource that we are processing.
The public identifier, or null if not provided. |
getPublicIdOfEntity | protected String getPublicIdOfEntity(int entityHandle)(Code) | | |
getPublicIdOfParameterEntity | protected String getPublicIdOfParameterEntity(int peIndex)(Code) | | |
getReaderDepth | public int getReaderDepth()(Code) | | This method is provided for scanner implementations.
|
getReaderId | public int getReaderId()(Code) | | This method is provided for scanner implementations.
|
getSystemId | public String getSystemId()(Code) | | Return the system identifier of the InputSource that we are processing.
The system identifier, or null if not provided. |
getSystemIdOfEntity | protected String getSystemIdOfEntity(int entityHandle)(Code) | | |
getSystemIdOfParameterEntity | protected String getSystemIdOfParameterEntity(int peIndex)(Code) | | |
isExternalEntity | protected boolean isExternalEntity(int entityHandle)(Code) | | |
isExternalParameterEntity | protected boolean isExternalParameterEntity(int peIndex)(Code) | | |
isNotationDeclared | public boolean isNotationDeclared(int notationName)(Code) | | |
isUnparsedEntity | public boolean isUnparsedEntity(int entityName)(Code) | | |
lookupEntity | protected int lookupEntity(int entityNameIndex)(Code) | | |
lookupParameterEntity | protected int lookupParameterEntity(int peName) throws Exception(Code) | | |
setAllowJavaEncodings | public void setAllowJavaEncodings(boolean flag)(Code) | | |
setEntityResolver | public void setEntityResolver(EntityResolver resolver)(Code) | | Sets the resolver used to resolve external entities. The EntityResolver
interface supports resolution of public and system identifiers.
Parameters: resolver - The new entity resolver. Passing a null value willuninstall the currently installed resolver. |
setEventHandler | public void setEventHandler(EventHandler eventHandler)(Code) | | |
setReaderDepth | public void setReaderDepth(int depth)(Code) | | This method is provided for scanner implementations.
|
setSendCharDataAsCharArray | public void setSendCharDataAsCharArray(boolean flag)(Code) | | Set char data processing preference.
|
startEntityDecl | public boolean startEntityDecl(boolean isPE, int entityName) throws Exception(Code) | | start an entity declaration
|
startReadingFromEntity | public boolean startReadingFromEntity(int entityName, int readerDepth, int context) throws Exception(Code) | | start reading from an external entity
|
startReadingFromExternalSubset | public void startReadingFromExternalSubset(String publicId, String systemId, int readerDepth) throws Exception(Code) | | start reading from an external DTD subset
|
stopReadingFromExternalSubset | public void stopReadingFromExternalSubset() throws Exception(Code) | | stop reading from an external DTD subset
|
valueOfReferenceInAttValue | protected int valueOfReferenceInAttValue(int entityHandle) throws Exception(Code) | | |
|
|