Java Doc for Handler.java in  » Database-DBMS » Quadcap-Embeddable-Database » com » quadcap » text » sax » 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 » Database DBMS » Quadcap Embeddable Database » com.quadcap.text.sax 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.quadcap.text.sax.Handler

Handler
public class Handler implements DocumentHandler,ErrorHandler(Code)
General purpose sax handler class.
author:
   Stan Bailes


Field Summary
protected  Objectcontext
    
protected  StringBufferdata
    
protected  Hashtableenv
    
 Locatorlocator
    
 Parserparser
    

Constructor Summary
public  Handler()
    

Method Summary
public  voidcharacters(char[] ch, int start, int length)
     SAX parser callback to handle character data found in the parsed document.
final protected  Stringconsume(String name)
    
final protected  StringconsumeAny(String name)
    
final protected  StringconsumeData()
    
public  voidendDocument()
     SAX parser callback function that is called when the end of the document is reached.
public  voidendElement(String name)
     SAX parser callback function called for the end of an element.
public  voiderror(SAXParseException exception)
     SAX parser callback to handle XML Parser errors.
public  voidfatalError(SAXParseException exception)
     SAX parser callback to handle XML Parser fatal errors.
public  voidignorableWhitespace(char[] ch, int start, int length)
     SAX parser callback for ignorable whitespace.
public  voidparse(Reader r, Object context)
     Parse the specified file the context of the specified web application.
public  voidprocessingInstruction(String target, String data)
     SAX parser callback for processing instructions.
public  voidsetDocumentLocator(Locator locator)
     SAX parser callback used to receive a document locator.
public  voidstartDocument()
     SAX parser callback for document start.
public  voidstartElement(String name, AttributeList attrs)
     SAX parser callback for the start of an element.
public  voidwarning(SAXParseException exception)
     SAX parser callback to handle XML Parser fatal errors.

Field Detail
context
protected Object context(Code)



data
protected StringBuffer data(Code)



env
protected Hashtable env(Code)



locator
Locator locator(Code)



parser
Parser parser(Code)




Constructor Detail
Handler
public Handler() throws SAXException(Code)
Construct a new parser




Method Detail
characters
public void characters(char[] ch, int start, int length) throws SAXException(Code)
SAX parser callback to handle character data found in the parsed document.
Parameters:
  ch - the buffer containing the parsed characters.
Parameters:
  star - the buffer position of the first character
Parameters:
  length - the number of characters
exception:
  SAXException - may be thrown if this data representsa database value and there's a SQL exception thrown whiletrying to update the underlying resultset object with thisdata.



consume
final protected String consume(String name) throws SAXException(Code)



consumeAny
final protected String consumeAny(String name) throws SAXException(Code)



consumeData
final protected String consumeData()(Code)



endDocument
public void endDocument()(Code)
SAX parser callback function that is called when the end of the document is reached. This implementation does nothing.



endElement
public void endElement(String name) throws SAXException(Code)
SAX parser callback function called for the end of an element.
Parameters:
  name - the name of this element
exception:
  SAXException - may be thrown



error
public void error(SAXParseException exception)(Code)
SAX parser callback to handle XML Parser errors. This implementation just prints them to System.err.
Parameters:
  exception - the exception generated by the parser.



fatalError
public void fatalError(SAXParseException exception)(Code)
SAX parser callback to handle XML Parser fatal errors. This implementation just prints them to System.err.
Parameters:
  exception - the exception generated by the parser.



ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length)(Code)
SAX parser callback for ignorable whitespace. We just ignore it
Parameters:
  ch - the buffer containing the parsed characters.
Parameters:
  star - the buffer position of the first character
Parameters:
  length - the number of characters



parse
public void parse(Reader r, Object context) throws SAXException(Code)
Parse the specified file the context of the specified web application.
Parameters:
  dd - the inputstream containing the deployment descriptor
Parameters:
  app - the web application being constructed



processingInstruction
public void processingInstruction(String target, String data)(Code)
SAX parser callback for processing instructions. This implementation does nothing.
Parameters:
  target - the processing instruction target.
Parameters:
  data - the processing instruction data.



setDocumentLocator
public void setDocumentLocator(Locator locator)(Code)
SAX parser callback used to receive a document locator.
Parameters:
  locator - the parser's locator object.



startDocument
public void startDocument()(Code)
SAX parser callback for document start. This implementation does nothing.



startElement
public void startElement(String name, AttributeList attrs) throws SAXException(Code)
SAX parser callback for the start of an element.
Parameters:
  name - the element name
Parameters:
  attrs - the element's attributes
exception:
  SAXException - may be thrown



warning
public void warning(SAXParseException exception)(Code)
SAX parser callback to handle XML Parser fatal errors. This implementation just prints them to System.err.
Parameters:
  exception - the exception generated by the parser.



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.