public class XmlLexicalHandler
extends java.lang.Object
implements org.xml.sax.ext.LexicalHandler
| Constructor and Description |
|---|
XmlLexicalHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
comment(char[] text,
int start,
int length)
Gathers comments into the comments list.
|
void |
endCDATA()
Report the end of a CDATA section.
|
void |
endDTD()
Report the end of DTD declarations.
|
void |
endEntity(java.lang.String name)
Report the end of an entity.
|
java.util.List<java.lang.String> |
getComments()
Returns the value of the comments list, which is
a List of Strings.
|
java.util.Set<java.lang.String> |
getEntityNames()
Returns the Set of entity names.
|
void |
startCDATA()
Report the start of a CDATA section.
|
void |
startDTD(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
Report the start of DTD declarations, if any.
|
void |
startEntity(java.lang.String name)
Accumulates entity names into the entity set.
|
public void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.endCDATA()public void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.endDTD()public void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.startCDATA()public void comment(char[] text,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.comment(char[], int, int)public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.startEntity(java.lang.String)public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.endEntity(java.lang.String)public void startDTD(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
throws org.xml.sax.SAXException
startDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionLexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)public java.util.List<java.lang.String> getComments()
public java.util.Set<java.lang.String> getEntityNames()