|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface used for entity management. This interface is typically implemented by the "parser" class to provide entity management services for the scanner classes.
Inner Class Summary | |
---|---|
static interface |
XMLEntityHandler.CharBuffer
This interface is used to store and retrieve character sequences. |
static interface |
XMLEntityHandler.CharDataHandler
Interface for passing character data. |
static interface |
XMLEntityHandler.DTDHandler
DTD specific entity handler |
static interface |
XMLEntityHandler.EntityReader
This is the interface for scanners to process input data from entities without needing to know the details of the underlying storage of those entities, or their encodings. |
Field Summary | |
---|---|
static int |
ATTVALUE_RESULT_COMPLEX
Special return values for scanAttValue method. |
static int |
ATTVALUE_RESULT_INVALID_CHAR
Special return values for scanAttValue method. |
static int |
ATTVALUE_RESULT_LESSTHAN
Special return values for scanAttValue method. |
static int |
CHARREF_RESULT_INVALID_CHAR
Special return values for scanCharRef method. |
static int |
CHARREF_RESULT_OUT_OF_RANGE
Special return values for scanCharRef method. |
static int |
CHARREF_RESULT_SEMICOLON_REQUIRED
Special return values for scanCharRef method. |
static int |
CONTENT_RESULT_END_OF_CDSECT
Return values for the scanContent method. |
static int |
CONTENT_RESULT_INVALID_CHAR
Return values for the scanContent method. |
static int |
CONTENT_RESULT_MARKUP_END_OF_INPUT
Return values for the scanContent method. |
static int |
CONTENT_RESULT_MARKUP_NOT_RECOGNIZED
Return values for the scanContent method. |
static int |
CONTENT_RESULT_MATCHING_ETAG
Return values for the scanContent method. |
static int |
CONTENT_RESULT_REFERENCE_END_OF_INPUT
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_CDSECT
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_CHARREF
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_COMMENT
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_ELEMENT
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_ENTITYREF
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_ETAG
Return values for the scanContent method. |
static int |
CONTENT_RESULT_START_OF_PI
Return values for the scanContent method. |
static int |
ENTITYREF_DOCUMENT
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_EXTERNAL_SUBSET
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_IN_ATTVALUE
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_IN_CONTENT
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_IN_DEFAULTATTVALUE
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_IN_DTD_AS_MARKUP
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_IN_DTD_WITHIN_MARKUP
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYREF_IN_ENTITYVALUE
This is an enumeration of all the defined contexts in which an entity reference may appear. |
static int |
ENTITYTYPE_DOCUMENT
This is an enumeration of all the defined entity types. |
static int |
ENTITYTYPE_EXTERNAL
This is an enumeration of all the defined entity types. |
static int |
ENTITYTYPE_EXTERNAL_PE
This is an enumeration of all the defined entity types. |
static int |
ENTITYTYPE_EXTERNAL_SUBSET
This is an enumeration of all the defined entity types. |
static int |
ENTITYTYPE_INTERNAL
This is an enumeration of all the defined entity types. |
static int |
ENTITYTYPE_INTERNAL_PE
This is an enumeration of all the defined entity types. |
static int |
ENTITYTYPE_UNPARSED
This is an enumeration of all the defined entity types. |
static int |
ENTITYVALUE_RESULT_END_OF_INPUT
Special return values for scanEntityValue method. |
static int |
ENTITYVALUE_RESULT_FINISHED
Special return values for scanEntityValue method. |
static int |
ENTITYVALUE_RESULT_INVALID_CHAR
Special return values for scanEntityValue method. |
static int |
ENTITYVALUE_RESULT_PEREF
Special return values for scanEntityValue method. |
static int |
ENTITYVALUE_RESULT_REFERENCE
Special return values for scanEntityValue method. |
static int |
STRINGLIT_RESULT_INVALID_CHAR
Special return values for scanStringLiteral method. |
static int |
STRINGLIT_RESULT_QUOTE_REQUIRED
Special return values for scanStringLiteral method. |
Method Summary | |
---|---|
XMLEntityHandler.EntityReader |
changeReaders()
This method is called by the reader subclasses at the end of input. |
java.lang.String |
expandSystemId(java.lang.String systemId)
Expand the system identifier relative to the entity that we are processing. |
XMLEntityHandler.CharDataHandler |
getCharDataHandler()
Get the character data handler. |
XMLEntityHandler.EntityReader |
getEntityReader()
Return the current reader. |
int |
getReaderDepth()
Return the depth set for the current reader. |
int |
getReaderId()
Return a unique identifier for the current reader. |
void |
setCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler)
Set the character data handler. |
void |
setReaderDepth(int depth)
Set the depth for the current reader. |
boolean |
startReadingFromDocument(InputSource source)
Start reading document from an InputSource. |
boolean |
startReadingFromEntity(int entityName,
int readerDepth,
int entityContext)
Start reading from this entity. |
Methods inherited from interface org.xml.sax.Locator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Field Detail |
public static final int CHARREF_RESULT_SEMICOLON_REQUIRED
public static final int CHARREF_RESULT_INVALID_CHAR
public static final int CHARREF_RESULT_OUT_OF_RANGE
public static final int STRINGLIT_RESULT_QUOTE_REQUIRED
public static final int STRINGLIT_RESULT_INVALID_CHAR
public static final int ATTVALUE_RESULT_COMPLEX
public static final int ATTVALUE_RESULT_LESSTHAN
public static final int ATTVALUE_RESULT_INVALID_CHAR
public static final int ENTITYVALUE_RESULT_FINISHED
public static final int ENTITYVALUE_RESULT_REFERENCE
public static final int ENTITYVALUE_RESULT_PEREF
public static final int ENTITYVALUE_RESULT_INVALID_CHAR
public static final int ENTITYVALUE_RESULT_END_OF_INPUT
public static final int CONTENT_RESULT_START_OF_PI
public static final int CONTENT_RESULT_START_OF_COMMENT
public static final int CONTENT_RESULT_START_OF_CDSECT
public static final int CONTENT_RESULT_END_OF_CDSECT
public static final int CONTENT_RESULT_START_OF_ETAG
public static final int CONTENT_RESULT_MATCHING_ETAG
public static final int CONTENT_RESULT_START_OF_ELEMENT
public static final int CONTENT_RESULT_START_OF_CHARREF
public static final int CONTENT_RESULT_START_OF_ENTITYREF
public static final int CONTENT_RESULT_INVALID_CHAR
public static final int CONTENT_RESULT_MARKUP_NOT_RECOGNIZED
public static final int CONTENT_RESULT_MARKUP_END_OF_INPUT
public static final int CONTENT_RESULT_REFERENCE_END_OF_INPUT
public static final int ENTITYTYPE_INTERNAL_PE
public static final int ENTITYTYPE_EXTERNAL_PE
public static final int ENTITYTYPE_INTERNAL
public static final int ENTITYTYPE_EXTERNAL
public static final int ENTITYTYPE_UNPARSED
public static final int ENTITYTYPE_DOCUMENT
public static final int ENTITYTYPE_EXTERNAL_SUBSET
public static final int ENTITYREF_IN_ATTVALUE
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_IN_DEFAULTATTVALUE
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_IN_CONTENT
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_IN_DTD_AS_MARKUP
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_IN_ENTITYVALUE
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_IN_DTD_WITHIN_MARKUP
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_DOCUMENT
startReadingFromEntity(int, int, int)
public static final int ENTITYREF_EXTERNAL_SUBSET
startReadingFromEntity(int, int, int)
Method Detail |
public boolean startReadingFromDocument(InputSource source) throws java.lang.Exception
source
- The input source for the document to process.true
if we were able to open the document source;
false
otherwise.java.lang.Exception
- public boolean startReadingFromEntity(int entityName, int readerDepth, int entityContext) throws java.lang.Exception
entityName
- The entity name handle in the string pool.readerDepth
- The depth to associate with the reader for this entity.context
- The context of the entity reference; see ENTITYREF_IN_*.true
if the entity might start with a TextDecl;
false
otherwise.java.lang.Exception
- public java.lang.String expandSystemId(java.lang.String systemId)
public int getReaderId()
public void setReaderDepth(int depth)
public int getReaderDepth()
public XMLEntityHandler.EntityReader getEntityReader()
public XMLEntityHandler.EntityReader changeReaders() throws java.lang.Exception
java.lang.Exception
- public void setCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler)
public XMLEntityHandler.CharDataHandler getCharDataHandler()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |