Java Doc for Parser.java in  » Graphic-Library » jcommon-components » org » jfree » xml » 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 » Graphic Library » jcommon components » org.jfree.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jfree.xml.FrontendDefaultHandler
   org.jfree.xml.Parser

Parser
abstract public class Parser extends FrontendDefaultHandler (Code)
The Parser handles the SAXEvents and forwards the event call to the currently active ElementDefinitionHandler. Contains methods to manage and configure the parsing process.

An initial report definition handler must be set before the parser can be used.
author:
   Thomas Morgner



Field Summary
final public static  StringCONTENTBASE_KEY
     A key for the content base.

Constructor Summary
public  Parser()
     Creates a new parser.

Method Summary
public  voidcharacters(char[] ch, int start, int length)
     Receive notification of character data inside an element.

By default, do nothing.

public  voidendDocument()
     Receive notification of the end of the document.

By default, do nothing.

public  voidendElement(String uri, String localName, String qName)
     Receive notification of the end of an element.

By default, do nothing.

public  String[]getComments()
     Returns the currently collected comments.
public  ObjectgetHelperObject(String key)
     Returns a helper object.
Parameters:
  key - the key.
public  ElementDefinitionHandlergetInitialFactory()
     Returns the initial handler.
abstract public  ParsergetInstance()
     Returns a new instance of the parser.
abstract public  ObjectgetResult()
     Returns the parsed result object after the parsing is complete.
final public  FrontendDefaultHandlernewInstance()
    
public  ElementDefinitionHandlerpeekFactory()
     Reads a handler off the stack without removing it.
public  ElementDefinitionHandlerpopFactory()
     Pops a handler from the stack.
public  voidpushFactory(ElementDefinitionHandler factory)
     Pushes a handler onto the stack.
public  voidsetHelperObject(String key, Object value)
     Sets a helper object.
public  voidsetInitialFactory(ElementDefinitionHandler factory)
     Sets the initial handler.
public  voidstartDocument()
     Receive notification of the beginning of the document.

By default, do nothing.

public  voidstartElement(String uri, String localName, String qName, Attributes attributes)
     Receive notification of the start of an element.

By default, do nothing.


Field Detail
CONTENTBASE_KEY
final public static String CONTENTBASE_KEY(Code)
A key for the content base.




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




Method Detail
characters
public void characters(char[] ch, int start, int length) throws SAXException(Code)
Receive notification of character data inside an element.

By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).


Parameters:
  ch - the characters.
Parameters:
  start - the start position in the character array.
Parameters:
  length - the number of characters to use from the character array.
exception:
  SAXException - Any SAX exception, possibly wrapping another exception.
See Also:   org.xml.sax.ContentHandler.characters



endDocument
public void endDocument() throws SAXException(Code)
Receive notification of the end of the document.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).


exception:
  SAXException - Any SAX exception, possibly wrapping another exception.
See Also:   org.xml.sax.ContentHandler.endDocument



endElement
public void endElement(String uri, String localName, String qName) throws SAXException(Code)
Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).


Parameters:
  uri - the URI.
Parameters:
  localName - the element type name.
Parameters:
  qName - the name.
exception:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.endElement



getComments
public String[] getComments()(Code)
Returns the currently collected comments. the comments.



getHelperObject
public Object getHelperObject(String key)(Code)
Returns a helper object.
Parameters:
  key - the key. The object.



getInitialFactory
public ElementDefinitionHandler getInitialFactory()(Code)
Returns the initial handler. The initial handler.



getInstance
abstract public Parser getInstance()(Code)
Returns a new instance of the parser. a new instance of the parser.



getResult
abstract public Object getResult()(Code)
Returns the parsed result object after the parsing is complete. Calling this function during the parsing is undefined and may result in an IllegalStateException. the parsed result.



newInstance
final public FrontendDefaultHandler newInstance()(Code)



peekFactory
public ElementDefinitionHandler peekFactory()(Code)
Reads a handler off the stack without removing it. The handler.



popFactory
public ElementDefinitionHandler popFactory()(Code)
Pops a handler from the stack. The handler.



pushFactory
public void pushFactory(ElementDefinitionHandler factory)(Code)
Pushes a handler onto the stack.
Parameters:
  factory - the handler.



setHelperObject
public void setHelperObject(String key, Object value)(Code)
Sets a helper object.
Parameters:
  key - the key.
Parameters:
  value - the value.



setInitialFactory
public void setInitialFactory(ElementDefinitionHandler factory)(Code)
Sets the initial handler.
Parameters:
  factory - the initial handler.



startDocument
public void startDocument() throws SAXException(Code)
Receive notification of the beginning of the document.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).


exception:
  SAXException - Any SAX exception, possibly wrapping another exception.
See Also:   org.xml.sax.ContentHandler.startDocument



startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)
Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).


Parameters:
  uri - the URI.
Parameters:
  localName - the element type name.
Parameters:
  qName - the name.
Parameters:
  attributes - the specified or defaulted attributes.
exception:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.startElement



Fields inherited from org.jfree.xml.FrontendDefaultHandler
final public static String CONTENTBASE_KEY(Code)(Java Doc)

Methods inherited from org.jfree.xml.FrontendDefaultHandler
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public Iterator findPropertyKeys(String prefix)(Code)(Java Doc)
public CommentHandler getCommentHandler()(Code)(Java Doc)
public Enumeration getConfigProperties()(Code)(Java Doc)
public String getConfigProperty(String key)(Code)(Java Doc)
public String getConfigProperty(String key, String defaultValue)(Code)(Java Doc)
public URL getContentBase()(Code)(Java Doc)
public Locator getLocator()(Code)(Java Doc)
abstract public Object getResult() throws SAXException(Code)(Java Doc)
abstract public FrontendDefaultHandler newInstance()(Code)(Java Doc)
public void setConfigProperty(String key, String value)(Code)(Java Doc)
public void setDocumentLocator(Locator locator)(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.