org.apache.shindig.gadgets.parse.nekohtml
Class NekoSimplifiedHtmlParser.DocumentHandler

java.lang.Object
  extended by org.apache.shindig.gadgets.parse.nekohtml.NekoSimplifiedHtmlParser.DocumentHandler
All Implemented Interfaces:
org.apache.xerces.xni.XMLDocumentHandler
Enclosing class:
NekoSimplifiedHtmlParser

protected class NekoSimplifiedHtmlParser.DocumentHandler
extends Object
implements org.apache.xerces.xni.XMLDocumentHandler

Handler for XNI events from Neko


Constructor Summary
NekoSimplifiedHtmlParser.DocumentHandler(String content)
           
 
Method Summary
 void characters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)
           
 void comment(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)
           
 void doctypeDecl(String rootElement, String publicId, String systemId, org.apache.xerces.xni.Augmentations augs)
           
 void emptyElement(org.apache.xerces.xni.QName qName, org.apache.xerces.xni.XMLAttributes xmlAttributes, org.apache.xerces.xni.Augmentations augs)
           
 void endCDATA(org.apache.xerces.xni.Augmentations augs)
           
 void endDocument(org.apache.xerces.xni.Augmentations augs)
           
 void endElement(org.apache.xerces.xni.QName qName, org.apache.xerces.xni.Augmentations augs)
           
 void endGeneralEntity(String s, org.apache.xerces.xni.Augmentations augs)
           
protected  void flushTextBuffer()
          Flush any existing text content to the document.
 Document getDocument()
           
 org.apache.xerces.xni.parser.XMLDocumentSource getDocumentSource()
           
 DocumentFragment getFragment()
           
 void ignorableWhitespace(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)
           
 void processingInstruction(String s, org.apache.xerces.xni.XMLString xmlString, org.apache.xerces.xni.Augmentations augs)
           
 void setDocumentSource(org.apache.xerces.xni.parser.XMLDocumentSource xmlDocumentSource)
           
 void startCDATA(org.apache.xerces.xni.Augmentations augs)
           
 void startDocument(org.apache.xerces.xni.XMLLocator xmlLocator, String encoding, org.apache.xerces.xni.NamespaceContext namespaceContext, org.apache.xerces.xni.Augmentations augs)
           
 void startElement(org.apache.xerces.xni.QName qName, org.apache.xerces.xni.XMLAttributes xmlAttributes, org.apache.xerces.xni.Augmentations augs)
           
 void startGeneralEntity(String name, org.apache.xerces.xni.XMLResourceIdentifier id, String encoding, org.apache.xerces.xni.Augmentations augs)
           
 void textDecl(String s, String s1, org.apache.xerces.xni.Augmentations augs)
           
 void xmlDecl(String version, String encoding, String standalone, org.apache.xerces.xni.Augmentations augs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NekoSimplifiedHtmlParser.DocumentHandler

public NekoSimplifiedHtmlParser.DocumentHandler(String content)
Method Detail

getFragment

public DocumentFragment getFragment()

getDocument

public Document getDocument()

startDocument

public void startDocument(org.apache.xerces.xni.XMLLocator xmlLocator,
                          String encoding,
                          org.apache.xerces.xni.NamespaceContext namespaceContext,
                          org.apache.xerces.xni.Augmentations augs)
                   throws org.apache.xerces.xni.XNIException
Specified by:
startDocument in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

xmlDecl

public void xmlDecl(String version,
                    String encoding,
                    String standalone,
                    org.apache.xerces.xni.Augmentations augs)
             throws org.apache.xerces.xni.XNIException
Specified by:
xmlDecl in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

doctypeDecl

public void doctypeDecl(String rootElement,
                        String publicId,
                        String systemId,
                        org.apache.xerces.xni.Augmentations augs)
                 throws org.apache.xerces.xni.XNIException
Specified by:
doctypeDecl in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

comment

public void comment(org.apache.xerces.xni.XMLString text,
                    org.apache.xerces.xni.Augmentations augs)
             throws org.apache.xerces.xni.XNIException
Specified by:
comment in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

processingInstruction

public void processingInstruction(String s,
                                  org.apache.xerces.xni.XMLString xmlString,
                                  org.apache.xerces.xni.Augmentations augs)
                           throws org.apache.xerces.xni.XNIException
Specified by:
processingInstruction in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

startElement

public void startElement(org.apache.xerces.xni.QName qName,
                         org.apache.xerces.xni.XMLAttributes xmlAttributes,
                         org.apache.xerces.xni.Augmentations augs)
                  throws org.apache.xerces.xni.XNIException
Specified by:
startElement in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

emptyElement

public void emptyElement(org.apache.xerces.xni.QName qName,
                         org.apache.xerces.xni.XMLAttributes xmlAttributes,
                         org.apache.xerces.xni.Augmentations augs)
                  throws org.apache.xerces.xni.XNIException
Specified by:
emptyElement in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

flushTextBuffer

protected void flushTextBuffer()
Flush any existing text content to the document. Call this before appending any nodes.


startGeneralEntity

public void startGeneralEntity(String name,
                               org.apache.xerces.xni.XMLResourceIdentifier id,
                               String encoding,
                               org.apache.xerces.xni.Augmentations augs)
                        throws org.apache.xerces.xni.XNIException
Specified by:
startGeneralEntity in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

textDecl

public void textDecl(String s,
                     String s1,
                     org.apache.xerces.xni.Augmentations augs)
              throws org.apache.xerces.xni.XNIException
Specified by:
textDecl in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

endGeneralEntity

public void endGeneralEntity(String s,
                             org.apache.xerces.xni.Augmentations augs)
                      throws org.apache.xerces.xni.XNIException
Specified by:
endGeneralEntity in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

characters

public void characters(org.apache.xerces.xni.XMLString text,
                       org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
Specified by:
characters in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

ignorableWhitespace

public void ignorableWhitespace(org.apache.xerces.xni.XMLString text,
                                org.apache.xerces.xni.Augmentations augs)
                         throws org.apache.xerces.xni.XNIException
Specified by:
ignorableWhitespace in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

endElement

public void endElement(org.apache.xerces.xni.QName qName,
                       org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
Specified by:
endElement in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

startCDATA

public void startCDATA(org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
Specified by:
startCDATA in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

endCDATA

public void endCDATA(org.apache.xerces.xni.Augmentations augs)
              throws org.apache.xerces.xni.XNIException
Specified by:
endCDATA in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

endDocument

public void endDocument(org.apache.xerces.xni.Augmentations augs)
                 throws org.apache.xerces.xni.XNIException
Specified by:
endDocument in interface org.apache.xerces.xni.XMLDocumentHandler
Throws:
org.apache.xerces.xni.XNIException

setDocumentSource

public void setDocumentSource(org.apache.xerces.xni.parser.XMLDocumentSource xmlDocumentSource)
Specified by:
setDocumentSource in interface org.apache.xerces.xni.XMLDocumentHandler

getDocumentSource

public org.apache.xerces.xni.parser.XMLDocumentSource getDocumentSource()
Specified by:
getDocumentSource in interface org.apache.xerces.xni.XMLDocumentHandler


Copyright © 2007-2012. All Rights Reserved.