|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.module.xml.XmlLexicalHandler
public class XmlLexicalHandler
This implementation of LexicalHandler takes care of comments, DTD's, entities and other stuff for XmlModule. The caller has to make sure the LexicalHandler property is supported by the SAX implementation, and set that property to this class.
Constructor Summary | |
---|---|
XmlLexicalHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlLexicalHandler()
Method Detail |
---|
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.endCDATA()
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.endDTD()
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.startCDATA()
public void comment(char[] text, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.comment(char[], int, int)
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.startEntity(java.lang.String)
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.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.LexicalHandler
org.xml.sax.SAXException
LexicalHandler.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |