Source Code Cross Referenced for ContentHandler.java in  » Development » Javolution » javolution » xml » 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 » Development » Javolution » javolution.xml.sax 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
003:         * Copyright (C) 2006 - Javolution (http://javolution.org/)
004:         * All rights reserved.
005:         * 
006:         * Permission to use, copy, modify, and distribute this software is
007:         * freely granted, provided that this notice is preserved.
008:         */
009:        package javolution.xml.sax;
010:
011:        import javolution.text.CharArray;
012:        import j2me.lang.CharSequence;
013:        import org.xml.sax.Locator;
014:        import org.xml.sax.SAXException;
015:
016:        /**
017:         * <p> Receives notification of the logical content of a document.</p>
018:         * 
019:         * <p> It is a more efficient version of <code>org.xml.sax.ContentHandler</code>
020:         *     with  {@link CharArray CharArray}/{@link CharSequence CharSequence} 
021:         *     instead of the <code>String</code> to avoid forcing dynamic object 
022:         *     allocations.</p>
023:         *
024:         * @author  <a href="mailto:sax@megginson.com">David Megginson</a>
025:         * @author  <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
026:         * @version 4.0, June 16, 2006
027:         */
028:        public interface ContentHandler {
029:
030:            /**
031:             * Receives an object for locating the origin of SAX document events.
032:             *
033:             * @param  locator the document locator.
034:             */
035:            void setDocumentLocator(Locator locator);
036:
037:            /**
038:             * Receives notification of the beginning of a document.
039:             *
040:             * @throws org.xml.sax.SAXException any SAX exception.
041:             */
042:            void startDocument() throws SAXException;
043:
044:            /**
045:             * Receives notification of the end of a document.
046:             *
047:             * @throws org.xml.sax.SAXException any SAX exception.
048:             */
049:            void endDocument() throws SAXException;
050:
051:            /**
052:             * Begins the scope of a prefix-URI Namespace mapping.
053:             *
054:             * @param  prefix the Namespace prefix being declared.
055:             * @param  uri the namespace URI the prefix is mapped to.
056:             * @throws org.xml.sax.SAXException any SAX exception.
057:             */
058:            void startPrefixMapping(CharArray prefix, CharArray uri)
059:                    throws SAXException;
060:
061:            /**
062:             * Ends the scope of a prefix-URI mapping.
063:             *
064:             * @param  prefix the prefix that was being mapping.
065:             * @throws org.xml.sax.SAXException any SAX exception.
066:             */
067:            void endPrefixMapping(CharArray prefix) throws SAXException;
068:
069:            /**
070:             * Receives notification of the beginning of an element.
071:             *
072:             * @param  uri the namespace URI, or an empty character sequence if the
073:             *         element has no Namespace URI or if namespace processing is not
074:             *         being performed.
075:             * @param  localName the local name (without prefix), or an empty character
076:             *         sequence if namespace processing is not being performed.
077:             * @param  qName the qualified name (with prefix), or an empty character
078:             *         sequence if qualified names are not available.
079:             * @param  atts the attributes attached to the element.  If there are no
080:             *         attributes, it shall be an empty {@link Attributes} object.
081:             * @throws org.xml.sax.SAXException any SAX exception.
082:             */
083:            void startElement(CharArray uri, CharArray localName,
084:                    CharArray qName, Attributes atts) throws SAXException;
085:
086:            /**
087:             * Receives notification of the end of an element.
088:             *
089:             * @param  uri the namespace URI, or an empty character sequence if the
090:             *         element has no Namespace URI or if namespace processing is not
091:             *         being performed.
092:             * @param  localName the local name (without prefix), or an empty character
093:             *         sequence if namespace processing is not being performed.
094:             * @param  qName the qualified XML 1.0 name (with prefix), or an empty
095:             *         character sequence if qualified names are not available.
096:             * @throws org.xml.sax.SAXException any SAX exception.
097:             */
098:            void endElement(CharArray uri, CharArray localName, CharArray qName)
099:                    throws SAXException;
100:
101:            /**
102:             * Receives notification of character data.
103:             *
104:             * @param  ch the characters from the XML document.
105:             * @param  start the start position in the array.
106:             * @param  length the number of characters to read from the array.
107:             * @throws org.xml.sax.SAXException any SAX exception.
108:             */
109:            void characters(char ch[], int start, int length)
110:                    throws SAXException;
111:
112:            /**
113:             * Receives notification of ignorable whitespace in element content.
114:             *
115:             * @param  ch the characters from the XML document.
116:             * @param  start the start position in the array.
117:             * @param  length the number of characters to read from the array.
118:             * @throws org.xml.sax.SAXException any SAX exception.
119:             */
120:            void ignorableWhitespace(char ch[], int start, int length)
121:                    throws SAXException;
122:
123:            /**
124:             * Receives notification of a processing instruction.
125:             *
126:             * @param  target the processing instruction target.
127:             * @param  data the processing instruction data, or null if
128:             *         none was supplied.  The data does not include any
129:             *         whitespace separating it from the target.
130:             * @throws org.xml.sax.SAXException any SAX exception.
131:             */
132:            void processingInstruction(CharArray target, CharArray data)
133:                    throws SAXException;
134:
135:            /**
136:             * Receives notification of a skipped entity.
137:             *
138:             * @param name the name of the skipped entity.  If it is a
139:             *        parameter entity, the name will begin with '%', and if
140:             *        it is the external DTD subset, it will be the character sequence
141:             *        "[dtd]".
142:             * @throws org.xml.sax.SAXException any SAX exception.
143:             */
144:            void skippedEntity(CharArray name) throws SAXException;
145:
146:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.