public class SAXBuilder extends Object implements DocumentHandler, DTDHandler, DocumentHandlerEx
| Modifier and Type | Field and Description |
|---|---|
protected ElementImpl | _currentThe current node in the document into which elements, text and other nodes will be inserted. |
protected DocumentImpl | _documentThe document that is being built. |
protected Vector | _preRootNodesThe 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 SAXExceptionstartDocument in interface DocumentHandlerSAXExceptionpublic void endDocument()
throws SAXExceptionendDocument in interface DocumentHandlerSAXExceptionpublic void startElement(String tagName, AttributeList attrList) throws SAXException
startElement in interface DocumentHandlerSAXExceptionpublic void endElement(String tagName) throws SAXException
endElement in interface DocumentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface DocumentHandlerpublic void characters(String text) throws SAXException
characters in interface DocumentHandlerExSAXExceptionpublic void characters(char[] text,
int start,
int length)
throws SAXExceptioncharacters in interface DocumentHandlerSAXExceptionpublic void ignorableWhitespace(char[] text,
int start,
int length)
throws SAXExceptionignorableWhitespace in interface DocumentHandlerSAXExceptionpublic void processingInstruction(String target, String instruction) throws SAXException
processingInstruction in interface DocumentHandlerSAXExceptionpublic void comment(String text) throws SAXException
comment in interface DocumentHandlerExSAXExceptionpublic void cdataSection(String text) throws SAXException
cdataSection in interface DocumentHandlerExSAXExceptionpublic void entityReference(String text) throws SAXException
entityReference in interface DocumentHandlerExSAXExceptionpublic void setDocumentType(String qualifiedName, String publicId, String systemId) throws SAXException
setDocumentType in interface DocumentHandlerExSAXExceptionpublic void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl in interface DTDHandlerSAXExceptionpublic void unparsedEntityDecl(String name, String publicId, String systemId, String notation) throws SAXException
unparsedEntityDecl in interface DTDHandlerSAXExceptionpublic 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.
© 2026 Mindus SARL. All rights reserved.