Constructor and Description |
---|
DOMBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
attribute(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String value) |
void |
cdata(char[] buffer,
int offset,
int length) |
void |
cdata(java.lang.String text) |
void |
characters(char[] buffer,
int offset,
int length)
Adds text characters to the current document.
|
void |
comment(char[] buf,
int offset,
int length)
Handles the callback for a comment.
|
void |
comment(java.lang.String data)
Handles the callback for a comment.
|
org.xml.sax.SAXException |
createError(java.lang.Exception e)
Throws an appropriate error.
|
void |
dtd(QDocumentType dtd) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
void |
entityReference(java.lang.String name) |
void |
error(org.xml.sax.SAXParseException e) |
void |
fatalError(org.xml.sax.SAXParseException e) |
boolean |
getEscapeText() |
org.w3c.dom.Node |
getNode() |
java.lang.String |
getSystemId() |
void |
ignorableWhitespace(char[] buffer,
int offset,
int length)
Handles the callback for ignorable whitespace.
|
void |
init(org.w3c.dom.Node top) |
void |
processingInstruction(java.lang.String name,
java.lang.String data) |
void |
setCoalescing(boolean isCoalescing)
Set true if text and cdata nodes should be combined.
|
void |
setDocumentLocator(org.xml.sax.Locator loc) |
void |
setEscapeText(boolean isEscaped) |
void |
setFilename(java.lang.String filename) |
void |
setLocation(java.lang.String filename,
int line,
int column) |
void |
setSkipWhitespace(boolean skipWhitespace)
Set true if ignorable whitespace should be skipped.
|
void |
setStrictXML(boolean isStrictXml)
Set true if we're only handling strict xml.
|
void |
setSystemId(java.lang.String systemId) |
void |
skippedEntity(java.lang.String s) |
void |
startDocument() |
void |
startElement(javax.xml.namespace.QName name,
com.caucho.xml2.QAttributes attributes) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String url) |
void |
text(char[] buffer,
int offset,
int length) |
void |
text(java.lang.String text) |
void |
warning(org.xml.sax.SAXParseException e) |
public void init(org.w3c.dom.Node top)
public void setSystemId(java.lang.String systemId)
public java.lang.String getSystemId()
public void setFilename(java.lang.String filename)
public void setStrictXML(boolean isStrictXml)
public void setCoalescing(boolean isCoalescing)
public void setSkipWhitespace(boolean skipWhitespace)
public void setDocumentLocator(org.xml.sax.Locator loc)
setDocumentLocator
in interface XMLWriter
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void startPrefixMapping(java.lang.String prefix, java.lang.String url)
startPrefixMapping
in interface XMLWriter
startPrefixMapping
in interface org.xml.sax.ContentHandler
public void endPrefixMapping(java.lang.String prefix)
endPrefixMapping
in interface XMLWriter
endPrefixMapping
in interface org.xml.sax.ContentHandler
public org.w3c.dom.Node getNode()
public void startDocument()
startDocument
in interface XMLWriter
startDocument
in interface org.xml.sax.ContentHandler
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface XMLWriter
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void setLocation(java.lang.String filename, int line, int column)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws java.io.IOException
startElement
in interface XMLWriter
java.io.IOException
public void startElement(javax.xml.namespace.QName name, com.caucho.xml2.QAttributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void dtd(QDocumentType dtd)
public void attribute(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String value) throws java.io.IOException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface XMLWriter
endElement
in interface org.xml.sax.ContentHandler
public void processingInstruction(java.lang.String name, java.lang.String data)
processingInstruction
in interface XMLWriter
processingInstruction
in interface org.xml.sax.ContentHandler
public void comment(char[] buf, int offset, int length) throws org.xml.sax.SAXException
data
- the content of the comment.org.xml.sax.SAXException
public void comment(java.lang.String data) throws java.io.IOException
public boolean getEscapeText()
getEscapeText
in interface XMLWriter
public void setEscapeText(boolean isEscaped)
setEscapeText
in interface XMLWriter
public void text(java.lang.String text) throws java.io.IOException
public void text(char[] buffer, int offset, int length) throws java.io.IOException
public void characters(char[] buffer, int offset, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] buffer, int offset, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
buffer
- the character buffer containing the whitespace.offset
- starting offset into the character buffer.length
- number of characters in the buffer.org.xml.sax.SAXException
public void entityReference(java.lang.String name)
public void skippedEntity(java.lang.String s)
skippedEntity
in interface org.xml.sax.ContentHandler
public void cdata(java.lang.String text) throws java.io.IOException
public void cdata(char[] buffer, int offset, int length) throws java.io.IOException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public org.xml.sax.SAXException createError(java.lang.Exception e)