public class SAXBuilder extends Object implements DocumentHandler, DTDHandler, DocumentHandlerEx
Modifier and Type | Field and Description |
---|---|
protected ElementImpl |
_current
The current node in the document into which elements, text and
other nodes will be inserted.
|
protected DocumentImpl |
_document
The document that is being built.
|
protected Vector |
_preRootNodes
The document is only created the same time as the document element, however, certain
nodes may precede the document element (comment and PI), and they are accumulated
in this vector.
|
Constructor and Description |
---|
SAXBuilder() |
SAXBuilder(boolean ignoreWhitespace) |
Modifier and Type | Method and Description |
---|---|
void |
cdataSection(String text) |
void |
characters(char[] text,
int start,
int length) |
void |
characters(String text) |
void |
comment(String text) |
protected DocumentImpl |
createDocument(String namespaceURI,
String tagName,
DocumentType docType) |
void |
endDocument() |
void |
endElement(String tagName) |
void |
entityReference(String text) |
Document |
getDocument() |
protected String |
getNamespaceURI(String qualifiedName,
AttributeList attrList) |
void |
ignorableWhitespace(char[] text,
int start,
int length) |
void |
notationDecl(String name,
String publicId,
String systemId) |
void |
processingInstruction(String target,
String instruction) |
void |
setDocumentLocator(Locator locator) |
void |
setDocumentType(String qualifiedName,
String publicId,
String systemId) |
void |
startDocument() |
void |
startElement(String tagName,
AttributeList attrList) |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notation) |
protected DocumentImpl _document
protected ElementImpl _current
protected Vector _preRootNodes
public SAXBuilder(boolean ignoreWhitespace)
public SAXBuilder()
public void startDocument() throws SAXException
startDocument
in interface DocumentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface DocumentHandler
SAXException
public void startElement(String tagName, AttributeList attrList) throws SAXException
startElement
in interface DocumentHandler
SAXException
public void endElement(String tagName) throws SAXException
endElement
in interface DocumentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface DocumentHandler
public void characters(String text) throws SAXException
characters
in interface DocumentHandlerEx
SAXException
public void characters(char[] text, int start, int length) throws SAXException
characters
in interface DocumentHandler
SAXException
public void ignorableWhitespace(char[] text, int start, int length) throws SAXException
ignorableWhitespace
in interface DocumentHandler
SAXException
public void processingInstruction(String target, String instruction) throws SAXException
processingInstruction
in interface DocumentHandler
SAXException
public void comment(String text) throws SAXException
comment
in interface DocumentHandlerEx
SAXException
public void cdataSection(String text) throws SAXException
cdataSection
in interface DocumentHandlerEx
SAXException
public void entityReference(String text) throws SAXException
entityReference
in interface DocumentHandlerEx
SAXException
public void setDocumentType(String qualifiedName, String publicId, String systemId) throws SAXException
setDocumentType
in interface DocumentHandlerEx
SAXException
public void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl
in interface DTDHandler
SAXException
public void unparsedEntityDecl(String name, String publicId, String systemId, String notation) throws SAXException
unparsedEntityDecl
in interface DTDHandler
SAXException
public Document getDocument()
protected String getNamespaceURI(String qualifiedName, AttributeList attrList)
protected DocumentImpl createDocument(String namespaceURI, String tagName, DocumentType docType)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.