Java Doc for SAXParser.java in  » 6.0-JDK-Modules » j2me » javax » xml » 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 » 6.0 JDK Modules » j2me » javax.xml.parsers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.parsers.SAXParser

SAXParser
abstract public class SAXParser (Code)
Defines the API that represents a simple SAX parser. An instance of this class can be obtained from the javax.xml.parsers.SAXParserFactory.newSAXParser method. Once an instance of this class is obtained, XML can be parsed from an InputStream

As the content is parsed by the underlying parser, methods of the given org.xml.sax.helpers.DefaultHandler are called.

An implementation of SAXParser is NOT guaranteed to behave as per the specification if it is used concurrently by two or more threads. It is recommended to have one instance of the SAXParser per thread or it is upto the application to make sure about the use of SAXParser from more than one thread.
since:
   JAXP 1.0
version:
   1.0




Constructor Summary
protected  SAXParser()
    

Method Summary
abstract public  booleanisNamespaceAware()
     Indicates whether or not this parser is configured to understand namespaces.
abstract public  booleanisValidating()
     Indicates whether or not this parser is configured to validate XML documents.
abstract public  voidparse(InputStream is, DefaultHandler dh)
     Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler .
abstract public  voidparse(InputSource is, DefaultHandler dh)
     Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler .


Constructor Detail
SAXParser
protected SAXParser()(Code)




Method Detail
isNamespaceAware
abstract public boolean isNamespaceAware()(Code)
Indicates whether or not this parser is configured to understand namespaces. true if this parser is configured tounderstand namespaces; false otherwise.



isValidating
abstract public boolean isValidating()(Code)
Indicates whether or not this parser is configured to validate XML documents. true if this parser is configured to validate XMLdocuments; false otherwise.



parse
abstract public void parse(InputStream is, DefaultHandler dh) throws SAXException, IOException(Code)
Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler .
Parameters:
  is - InputStream containing the content to be parsed.
Parameters:
  dh - The SAX DefaultHandler to use.
exception:
  IOException - If any IO errors occur.
exception:
  IllegalArgumentException - If the given InputStream is null.
exception:
  SAXException - If the underlying parser throws aSAXException while parsing.



parse
abstract public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException(Code)
Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler .
Parameters:
  is - The InputSource containing the content to be parsed.
Parameters:
  dh - The SAX DefaultHandler to use.
exception:
  IOException - If any IO errors occur.
exception:
  IllegalArgumentException - If the InputSource is null.
exception:
  SAXException - If the underlying parser throws aSAXException while parsing.
See Also:   org.xml.sax.DocumentHandler



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.