Java Doc for DOMFragmentParser.java in  » HTML-Parser » nekohtml » org » cyberneko » html » parsers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » HTML Parser » nekohtml » org.cyberneko.html.parsers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cyberneko.html.parsers.DOMFragmentParser

DOMFragmentParser
public class DOMFragmentParser implements XMLDocumentHandler(Code)
A DOM parser for HTML fragments.
author:
   Andy Clark
version:
   $Id: DOMFragmentParser.java,v 1.8 2005/02/14 03:56:54 andyc Exp $


Field Summary
final protected static  StringCURRENT_ELEMENT_NODE
     Current element node.
final protected static  StringDOCUMENT_FRAGMENT
     Document fragment balancing only.
final protected static  StringERROR_HANDLER
     Property identifier: error handler.
final protected static  String[]RECOGNIZED_FEATURES
     Recognized features.
final protected static  String[]RECOGNIZED_PROPERTIES
     Recognized properties.
protected  NodefCurrentNode
     Current node.
protected  DocumentfDocument
     Document.
protected  DocumentFragmentfDocumentFragment
     DOM document fragment.
protected  XMLDocumentSourcefDocumentSource
     Document source.
protected  booleanfInCDATASection
     True if within a CDATA section.
protected  XMLParserConfigurationfParserConfiguration
     Parser configuration.

Constructor Summary
public  DOMFragmentParser()
     Default constructor.

Method Summary
public  voidcharacters(XMLString text, Augmentations augs)
     Characters.
public  voidcomment(XMLString text, Augmentations augs)
     Comment.
public  voiddoctypeDecl(String root, String pubid, String sysid, Augmentations augs)
     Document type declaration.
public  voidemptyElement(QName element, XMLAttributes attrs, Augmentations augs)
     Empty element.
public  voidendCDATA(Augmentations augs)
     End CDATA section.
public  voidendDocument(Augmentations augs)
     End document.
public  voidendElement(QName element, Augmentations augs)
     End element.
public  voidendGeneralEntity(String name, Augmentations augs)
     End general entity.
public  voidendPrefixMapping(String prefix, Augmentations augs)
     End prefix mapping.
public  XMLDocumentSourcegetDocumentSource()
     Returns the document source.
public  ErrorHandlergetErrorHandler()
     Return the current error handler.
public  booleangetFeature(String featureId)
     Query the state of a feature. Query the current state of any feature in a SAX2 parser.
public  ObjectgetProperty(String propertyId)
     Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set.
public  voidignorableWhitespace(XMLString text, Augmentations augs)
     Ignorable whitespace.
public  voidparse(String systemId, DocumentFragment fragment)
     Parses a document fragment.
public  voidparse(InputSource source, DocumentFragment fragment)
     Parses a document fragment.
public  voidprocessingInstruction(String target, XMLString data, Augmentations augs)
     Processing instruction.
public  voidsetDocumentSource(XMLDocumentSource source)
     Sets the document source.
public  voidsetErrorHandler(ErrorHandler errorHandler)
     Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue.

public  voidsetFeature(String featureId, boolean state)
     Set the state of any feature in a SAX2 parser.
public  voidsetProperty(String propertyId, Object value)
     Set the value of any property in a SAX2 parser.
public  voidstartCDATA(Augmentations augs)
     Start CDATA section.
public  voidstartDocument(XMLLocator locator, String encoding, Augmentations augs)
     Start document.
public  voidstartDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs)
     Start document.
public  voidstartElement(QName element, XMLAttributes attrs, Augmentations augs)
     Start element.
public  voidstartGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs)
     Start general entity.
public  voidstartPrefixMapping(String prefix, String uri, Augmentations augs)
     Start prefix mapping.
public  voidtextDecl(String version, String encoding, Augmentations augs)
     Text declaration.
public  voidxmlDecl(String version, String encoding, String standalone, Augmentations augs)
     XML declaration.

Field Detail
CURRENT_ELEMENT_NODE
final protected static String CURRENT_ELEMENT_NODE(Code)
Current element node.



DOCUMENT_FRAGMENT
final protected static String DOCUMENT_FRAGMENT(Code)
Document fragment balancing only.



ERROR_HANDLER
final protected static String ERROR_HANDLER(Code)
Property identifier: error handler.



RECOGNIZED_FEATURES
final protected static String[] RECOGNIZED_FEATURES(Code)
Recognized features.



RECOGNIZED_PROPERTIES
final protected static String[] RECOGNIZED_PROPERTIES(Code)
Recognized properties.



fCurrentNode
protected Node fCurrentNode(Code)
Current node.



fDocument
protected Document fDocument(Code)
Document.



fDocumentFragment
protected DocumentFragment fDocumentFragment(Code)
DOM document fragment.



fDocumentSource
protected XMLDocumentSource fDocumentSource(Code)
Document source.



fInCDATASection
protected boolean fInCDATASection(Code)
True if within a CDATA section.



fParserConfiguration
protected XMLParserConfiguration fParserConfiguration(Code)
Parser configuration.




Constructor Detail
DOMFragmentParser
public DOMFragmentParser()(Code)
Default constructor.




Method Detail
characters
public void characters(XMLString text, Augmentations augs) throws XNIException(Code)
Characters.



comment
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)
Comment.



doctypeDecl
public void doctypeDecl(String root, String pubid, String sysid, Augmentations augs) throws XNIException(Code)
Document type declaration.



emptyElement
public void emptyElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code)
Empty element.



endCDATA
public void endCDATA(Augmentations augs) throws XNIException(Code)
End CDATA section.



endDocument
public void endDocument(Augmentations augs) throws XNIException(Code)
End document.



endElement
public void endElement(QName element, Augmentations augs) throws XNIException(Code)
End element.



endGeneralEntity
public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)
End general entity.



endPrefixMapping
public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException(Code)
End prefix mapping. @deprecated Since Xerces 2.2.0.



getDocumentSource
public XMLDocumentSource getDocumentSource()(Code)
Returns the document source.



getErrorHandler
public ErrorHandler getErrorHandler()(Code)
Return the current error handler. The current error handler, or null if nonehas been registered.
See Also:   DOMFragmentParser.setErrorHandler



getFeature
public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Query the state of a feature. Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.
Parameters:
  featureId - The unique identifier (URI) of the featurebeing set. The current state of the feature.
exception:
  org.xml.sax.SAXNotRecognizedException - If therequested feature is not known.
exception:
  SAXNotSupportedException - If therequested feature is known but not supported.



getProperty
public Object getProperty(String propertyId) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set. The current value of the property.
exception:
  org.xml.sax.SAXNotRecognizedException - If therequested property is not known.
exception:
  SAXNotSupportedException - If therequested property is known but not supported.



ignorableWhitespace
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)
Ignorable whitespace.



parse
public void parse(String systemId, DocumentFragment fragment) throws SAXException, IOException(Code)
Parses a document fragment.



parse
public void parse(InputSource source, DocumentFragment fragment) throws SAXException, IOException(Code)
Parses a document fragment.



processingInstruction
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)
Processing instruction.



setDocumentSource
public void setDocumentSource(XMLDocumentSource source)(Code)
Sets the document source.



setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)(Code)
Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.


Parameters:
  errorHandler - The error handler.
exception:
  java.lang.NullPointerException - If the handler argument is null.
See Also:   DOMFragmentParser.getErrorHandler



setFeature
public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
Parameters:
  featureId - The unique identifier (URI) of the feature.
Parameters:
  state - The requested state of the feature (true or false).
exception:
  SAXNotRecognizedException - If therequested feature is not known.
exception:
  SAXNotSupportedException - If therequested feature is known, but the requestedstate is not supported.



setProperty
public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Set the value of any property in a SAX2 parser. The parser might not recognize the property, and if it does recognize it, it might not support the requested value.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set.
Parameters:
  value - The value to which the property is being set.
exception:
  SAXNotRecognizedException - If therequested property is not known.
exception:
  SAXNotSupportedException - If therequested property is known, but the requestedvalue is not supported.



startCDATA
public void startCDATA(Augmentations augs) throws XNIException(Code)
Start CDATA section.



startDocument
public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException(Code)
Start document.



startDocument
public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code)
Start document.



startElement
public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code)
Start element.



startGeneralEntity
public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException(Code)
Start general entity.



startPrefixMapping
public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException(Code)
Start prefix mapping. @deprecated Since Xerces 2.2.0.



textDecl
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)
Text declaration.



xmlDecl
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)
XML declaration.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.