class SAXStreamer extends TreeBuilder<org.xml.sax.Attributes>
Modifier and Type | Field and Description |
---|---|
private org.xml.sax.ContentHandler |
contentHandler |
private static char[] |
ISINDEX_PROMPT |
private org.xml.sax.ext.LexicalHandler |
lexicalHandler |
charBuffer, charBufferLen, errorHandler, tokenizer
Constructor and Description |
---|
SAXStreamer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributesToElement(org.xml.sax.Attributes element,
HtmlAttributes attributes) |
protected void |
appendCharacters(org.xml.sax.Attributes parent,
char[] buf,
int start,
int length) |
protected void |
appendChildrenToNewParent(org.xml.sax.Attributes oldParent,
org.xml.sax.Attributes newParent) |
protected void |
appendComment(org.xml.sax.Attributes parent,
char[] buf,
int start,
int length) |
protected void |
appendCommentToDocument(char[] buf,
int start,
int length) |
protected void |
appendDoctypeToDocument(java.lang.String name,
java.lang.String publicIdentifier,
java.lang.String systemIdentifier) |
protected void |
appendElement(org.xml.sax.Attributes child,
org.xml.sax.Attributes newParent) |
protected void |
appendIsindexPrompt(org.xml.sax.Attributes parent) |
protected org.xml.sax.Attributes |
createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected org.xml.sax.Attributes |
createHtmlElementSetAsRoot(HtmlAttributes attributes) |
protected void |
detachFromParent(org.xml.sax.Attributes element) |
protected void |
elementPopped(java.lang.String ns,
java.lang.String name,
org.xml.sax.Attributes node) |
protected void |
elementPushed(java.lang.String ns,
java.lang.String name,
org.xml.sax.Attributes node) |
protected void |
end() |
protected void |
fatal()
Reports an condition that would make the infoset incompatible with XML
1.0 as fatal.
|
protected boolean |
hasChildren(org.xml.sax.Attributes element) |
protected void |
insertFosterParentedCharacters(char[] buf,
int start,
int length,
org.xml.sax.Attributes table,
org.xml.sax.Attributes stackParent) |
protected void |
insertFosterParentedChild(org.xml.sax.Attributes child,
org.xml.sax.Attributes table,
org.xml.sax.Attributes stackParent) |
void |
setContentHandler(org.xml.sax.ContentHandler handler) |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler) |
protected void |
start(boolean fragment) |
accumulateCharacters, cdataSectionAllowed, characters, comment, createElement, currentNode, doctype, documentMode, endTag, endTokenization, eof, extractCharsetFromContent, fatal, flushCharacters, getDeepTreeSurrogateParent, getErrorHandler, getFormPointer, getHeadPointer, getListOfActiveFormattingElements, getListOfActiveFormattingElementsLength, getMode, getOriginalMode, getStack, getStackLength, isFramesetOk, isNeedToDropLF, isQuirks, isScriptingEnabled, loadState, markMalformedIfScript, newSnapshot, requestSuspension, setDoctypeExpectation, setDocumentModeHandler, setErrorHandler, setFragmentContext, setFragmentContext, setIgnoringComments, setNamePolicy, setReportingDoctype, setScriptingEnabled, snapshotMatches, startTag, startTokenization, wantsComments, zeroOriginatingReplacementCharacter
private static final char[] ISINDEX_PROMPT
private org.xml.sax.ContentHandler contentHandler
private org.xml.sax.ext.LexicalHandler lexicalHandler
protected void addAttributesToElement(org.xml.sax.Attributes element, HtmlAttributes attributes) throws org.xml.sax.SAXException
addAttributesToElement
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void appendCharacters(org.xml.sax.Attributes parent, char[] buf, int start, int length) throws org.xml.sax.SAXException
appendCharacters
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void appendIsindexPrompt(org.xml.sax.Attributes parent) throws org.xml.sax.SAXException
appendIsindexPrompt
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
TreeBuilder.appendIsindexPrompt(java.lang.Object)
protected void appendChildrenToNewParent(org.xml.sax.Attributes oldParent, org.xml.sax.Attributes newParent) throws org.xml.sax.SAXException
appendChildrenToNewParent
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void appendComment(org.xml.sax.Attributes parent, char[] buf, int start, int length) throws org.xml.sax.SAXException
appendComment
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void appendCommentToDocument(char[] buf, int start, int length) throws org.xml.sax.SAXException
appendCommentToDocument
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected org.xml.sax.Attributes createElement(java.lang.String ns, java.lang.String name, HtmlAttributes attributes) throws org.xml.sax.SAXException
createElement
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected org.xml.sax.Attributes createHtmlElementSetAsRoot(HtmlAttributes attributes) throws org.xml.sax.SAXException
createHtmlElementSetAsRoot
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void detachFromParent(org.xml.sax.Attributes element) throws org.xml.sax.SAXException
detachFromParent
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void appendElement(org.xml.sax.Attributes child, org.xml.sax.Attributes newParent) throws org.xml.sax.SAXException
appendElement
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected boolean hasChildren(org.xml.sax.Attributes element) throws org.xml.sax.SAXException
hasChildren
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
public void setContentHandler(org.xml.sax.ContentHandler handler)
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
protected void appendDoctypeToDocument(java.lang.String name, java.lang.String publicIdentifier, java.lang.String systemIdentifier) throws org.xml.sax.SAXException
appendDoctypeToDocument
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
TreeBuilder.appendDoctypeToDocument(java.lang.String, java.lang.String, java.lang.String)
protected void elementPopped(java.lang.String ns, java.lang.String name, org.xml.sax.Attributes node) throws org.xml.sax.SAXException
elementPopped
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
TreeBuilder.elementPopped(String, java.lang.String, java.lang.Object)
protected void elementPushed(java.lang.String ns, java.lang.String name, org.xml.sax.Attributes node) throws org.xml.sax.SAXException
elementPushed
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
TreeBuilder.elementPushed(String, java.lang.String, java.lang.Object)
protected void end() throws org.xml.sax.SAXException
end
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
TreeBuilder.end()
protected void start(boolean fragment) throws org.xml.sax.SAXException
start
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
nu.validator.htmlparser.impl.TreeBuilder#start()
protected void fatal() throws org.xml.sax.SAXException
TreeBuilder
fatal
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
org.xml.sax.SAXParseException
protected void insertFosterParentedCharacters(char[] buf, int start, int length, org.xml.sax.Attributes table, org.xml.sax.Attributes stackParent) throws org.xml.sax.SAXException
insertFosterParentedCharacters
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException
protected void insertFosterParentedChild(org.xml.sax.Attributes child, org.xml.sax.Attributes table, org.xml.sax.Attributes stackParent) throws org.xml.sax.SAXException
insertFosterParentedChild
in class TreeBuilder<org.xml.sax.Attributes>
org.xml.sax.SAXException