Java Doc for StdXMLParser.java in  » XML-UI » XUI » net » n3 » nanoxml » 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 » XML UI » XUI » net.n3.nanoxml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.n3.nanoxml.StdXMLParser

StdXMLParser
public class StdXMLParser implements IXMLParser(Code)
StdXMLParser is the core parser of NanoXML.
author:
   Marc De Scheemaecker
version:
   $Name: $, $Revision: 1.17 $



Constructor Summary
public  StdXMLParser()
     Creates a new parser.

Method Summary
protected  voidfinalize()
     Cleans up the object when it's destroyed.
public  IXMLBuildergetBuilder()
     Returns the builder which creates the logical structure of the XML data.
public  IXMLReadergetReader()
     Returns the reader from which the parser retrieves its data.
public  IXMLEntityResolvergetResolver()
     Returns the entity resolver.
public  IXMLValidatorgetValidator()
     Returns the validator that validates the XML data.
public  Objectparse()
     Parses the data and lets the builder create the logical data structure.
protected  voidprocessAttribute(Vector attrNames, Vector attrValues, Vector attrTypes)
     Processes an attribute of an element.
protected  voidprocessCDATA()
     Processes a CDATA section.
protected  voidprocessDocType()
     Processes a document type declaration.
protected  voidprocessElement(String defaultNamespace, Properties namespaces)
     Processes a regular element.
protected  voidprocessPI()
     Processes a "processing instruction".
protected  voidprocessSpecialTag(boolean allowCDATA)
     Processes a tag that starts with a bang (<!...>).
protected  voidscanData()
     Scans the XML data for elements.
protected  voidscanSomeTag(boolean allowCDATA, String defaultNamespace, Properties namespaces)
     Scans an XML tag.
public  voidsetBuilder(IXMLBuilder builder)
     Sets the builder which creates the logical structure of the XML data.
public  voidsetReader(IXMLReader reader)
     Sets the reader from which the parser retrieves its data.
public  voidsetResolver(IXMLEntityResolver resolver)
     Sets the entity resolver.
public  voidsetValidator(IXMLValidator validator)
     Sets the validator that validates the XML data.


Constructor Detail
StdXMLParser
public StdXMLParser()(Code)
Creates a new parser.




Method Detail
finalize
protected void finalize() throws Throwable(Code)
Cleans up the object when it's destroyed.



getBuilder
public IXMLBuilder getBuilder()(Code)
Returns the builder which creates the logical structure of the XML data. the builder



getReader
public IXMLReader getReader()(Code)
Returns the reader from which the parser retrieves its data. the reader



getResolver
public IXMLEntityResolver getResolver()(Code)
Returns the entity resolver. the non-null resolver



getValidator
public IXMLValidator getValidator()(Code)
Returns the validator that validates the XML data. the validator



parse
public Object parse() throws XMLException(Code)
Parses the data and lets the builder create the logical data structure. the logical structure built by the builder
throws:
  net.n3.nanoxml.XMLException - if an error occurred reading or parsing the data



processAttribute
protected void processAttribute(Vector attrNames, Vector attrValues, Vector attrTypes) throws Exception(Code)
Processes an attribute of an element.
Parameters:
  attrNames - contains the names of the attributes.
Parameters:
  attrValues - contains the values of the attributes.
Parameters:
  attrTypes - contains the types of the attributes.
throws:
  java.lang.Exception - if something went wrong



processCDATA
protected void processCDATA() throws Exception(Code)
Processes a CDATA section.
throws:
  java.lang.Exception - if something went wrong



processDocType
protected void processDocType() throws Exception(Code)
Processes a document type declaration.
throws:
  java.lang.Exception - if an error occurred reading or parsing the data



processElement
protected void processElement(String defaultNamespace, Properties namespaces) throws Exception(Code)
Processes a regular element.
Parameters:
  defaultNamespace - the default namespace URI (or null)
Parameters:
  namespaces - list of defined namespaces
throws:
  java.lang.Exception - if something went wrong



processPI
protected void processPI() throws Exception(Code)
Processes a "processing instruction".
throws:
  java.lang.Exception - if something went wrong



processSpecialTag
protected void processSpecialTag(boolean allowCDATA) throws Exception(Code)
Processes a tag that starts with a bang (<!...>).
Parameters:
  allowCDATA - true if CDATA sections are allowed at this point
throws:
  java.lang.Exception - if something went wrong



scanData
protected void scanData() throws Exception(Code)
Scans the XML data for elements.
throws:
  java.lang.Exception - if something went wrong



scanSomeTag
protected void scanSomeTag(boolean allowCDATA, String defaultNamespace, Properties namespaces) throws Exception(Code)
Scans an XML tag.
Parameters:
  allowCDATA - true if CDATA sections are allowed at this point
Parameters:
  defaultNamespace - the default namespace URI (or null)
Parameters:
  namespaces - list of defined namespaces
throws:
  java.lang.Exception - if something went wrong



setBuilder
public void setBuilder(IXMLBuilder builder)(Code)
Sets the builder which creates the logical structure of the XML data.
Parameters:
  builder - the non-null builder



setReader
public void setReader(IXMLReader reader)(Code)
Sets the reader from which the parser retrieves its data.
Parameters:
  reader - the reader



setResolver
public void setResolver(IXMLEntityResolver resolver)(Code)
Sets the entity resolver.
Parameters:
  resolver - the non-null resolver



setValidator
public void setValidator(IXMLValidator validator)(Code)
Sets the validator that validates the XML data.
Parameters:
  validator - the non-null validator



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.