public class SimpleHandler
extends org.xml.sax.ext.DefaultHandler2
Constructor and Description |
---|
SimpleHandler(org.w3c.dom.DOMImplementation impl) |
Modifier and Type | Method and Description |
---|---|
void |
attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String mode,
java.lang.String value) |
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
void |
elementDecl(java.lang.String name,
java.lang.String model) |
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
endEntity(java.lang.String name) |
void |
error(org.xml.sax.SAXParseException e) |
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId) |
void |
fatalError(org.xml.sax.SAXParseException e) |
org.w3c.dom.Document |
getDocument() |
org.xml.sax.InputSource |
getExternalSubset(java.lang.String name,
java.lang.String baseURI) |
void |
internalEntityDecl(java.lang.String name,
java.lang.String value) |
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId) |
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String name,
java.lang.String publicId,
java.lang.String baseURI,
java.lang.String systemId) |
void |
skippedEntity(java.lang.String name) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
void |
startEntity(java.lang.String name) |
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName) |
void |
warning(org.xml.sax.SAXParseException e) |
public org.w3c.dom.Document getDocument()
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void processingInstruction(java.lang.String target, java.lang.String data)
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void elementDecl(java.lang.String name, java.lang.String model)
elementDecl
in interface org.xml.sax.ext.DeclHandler
elementDecl
in class org.xml.sax.ext.DefaultHandler2
public void attributeDecl(java.lang.String eName, java.lang.String aName, java.lang.String type, java.lang.String mode, java.lang.String value)
attributeDecl
in interface org.xml.sax.ext.DeclHandler
attributeDecl
in class org.xml.sax.ext.DefaultHandler2
public void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
notationDecl
in interface org.xml.sax.DTDHandler
notationDecl
in class org.xml.sax.helpers.DefaultHandler
public void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName)
unparsedEntityDecl
in interface org.xml.sax.DTDHandler
unparsedEntityDecl
in class org.xml.sax.helpers.DefaultHandler
public void internalEntityDecl(java.lang.String name, java.lang.String value)
internalEntityDecl
in interface org.xml.sax.ext.DeclHandler
internalEntityDecl
in class org.xml.sax.ext.DefaultHandler2
public void externalEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
externalEntityDecl
in interface org.xml.sax.ext.DeclHandler
externalEntityDecl
in class org.xml.sax.ext.DefaultHandler2
public void comment(char[] ch, int start, int length)
comment
in interface org.xml.sax.ext.LexicalHandler
comment
in class org.xml.sax.ext.DefaultHandler2
public void startCDATA()
startCDATA
in interface org.xml.sax.ext.LexicalHandler
startCDATA
in class org.xml.sax.ext.DefaultHandler2
public void endCDATA()
endCDATA
in interface org.xml.sax.ext.LexicalHandler
endCDATA
in class org.xml.sax.ext.DefaultHandler2
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
startDTD
in interface org.xml.sax.ext.LexicalHandler
startDTD
in class org.xml.sax.ext.DefaultHandler2
public void endDTD()
endDTD
in interface org.xml.sax.ext.LexicalHandler
endDTD
in class org.xml.sax.ext.DefaultHandler2
public void startEntity(java.lang.String name)
startEntity
in interface org.xml.sax.ext.LexicalHandler
startEntity
in class org.xml.sax.ext.DefaultHandler2
public void endEntity(java.lang.String name)
endEntity
in interface org.xml.sax.ext.LexicalHandler
endEntity
in class org.xml.sax.ext.DefaultHandler2
public org.xml.sax.InputSource getExternalSubset(java.lang.String name, java.lang.String baseURI)
getExternalSubset
in interface org.xml.sax.ext.EntityResolver2
getExternalSubset
in class org.xml.sax.ext.DefaultHandler2
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.ext.DefaultHandler2
public org.xml.sax.InputSource resolveEntity(java.lang.String name, java.lang.String publicId, java.lang.String baseURI, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.ext.EntityResolver2
resolveEntity
in class org.xml.sax.ext.DefaultHandler2
public void skippedEntity(java.lang.String name)
skippedEntity
in interface org.xml.sax.ContentHandler
skippedEntity
in class org.xml.sax.helpers.DefaultHandler
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException