public class XmlLexicalHandler extends Object implements 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(String name)
Report the end of an entity.
|
List<String> |
getComments()
Returns the value of the comments list, which is
a List of Strings.
|
Set<String> |
getEntityNames()
Returns the Set of entity names.
|
void |
startCDATA()
Report the start of a CDATA section.
|
void |
startDTD(String arg0,
String arg1,
String arg2)
Report the start of DTD declarations, if any.
|
void |
startEntity(String name)
Accumulates entity names into the entity set.
|
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
LexicalHandler.endCDATA()
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
LexicalHandler.endDTD()
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
LexicalHandler.startCDATA()
public void comment(char[] text, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
LexicalHandler.comment(char[], int, int)
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
LexicalHandler.startEntity(java.lang.String)
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
LexicalHandler.endEntity(java.lang.String)
public void startDTD(String arg0, String arg1, String arg2) throws SAXException
startDTD
in interface LexicalHandler
SAXException
LexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)
public List<String> getComments()
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.