Source Code Cross Referenced for XMLEventReader.java in  » 6.0-JDK-Core » xml » javax » xml » stream » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » xml » javax.xml.stream 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01        package javax.xml.stream;
02
03        import javax.xml.stream.events.XMLEvent;
04        import java.util.Iterator;
05
06        /**
07         *
08         * This is the top level interface for parsing XML Events.  It provides
09         * the ability to peek at the next event and returns configuration 
10         * information through the property interface.
11         *
12         * @version 1.0
13         * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
14         * @see XMLInputFactory
15         * @see XMLEventWriter
16         * @since 1.6
17         */
18        public interface XMLEventReader extends Iterator {
19            /**
20             * Get the next XMLEvent 
21             * @see XMLEvent
22             * @throws XMLStreamException if there is an error with the underlying XML.
23             * @throws NoSuchElementException iteration has no more elements.
24             */
25            public XMLEvent nextEvent() throws XMLStreamException;
26
27            /**
28             * Check if there are more events.  
29             * Returns true if there are more events and false otherwise.
30             * @return true if the event reader has more events, false otherwise
31             */
32            public boolean hasNext();
33
34            /**
35             * Check the next XMLEvent without reading it from the stream.
36             * Returns null if the stream is at EOF or has no more XMLEvents.
37             * A call to peek() will be equal to the next return of next().
38             * @see XMLEvent
39             * @throws XMLStreamException
40             */
41            public XMLEvent peek() throws XMLStreamException;
42
43            /**
44             * Reads the content of a text-only element. Precondition:
45             * the current event is START_ELEMENT. Postcondition:
46             * The current event is the corresponding END_ELEMENT.
47             * @throws XMLStreamException if the current event is not a START_ELEMENT
48             * or if a non text element is encountered
49             */
50            public String getElementText() throws XMLStreamException;
51
52            /**
53             * Skips any insignificant space events until a START_ELEMENT or
54             * END_ELEMENT is reached. If anything other than space characters are
55             * encountered, an exception is thrown. This method should
56             * be used when processing element-only content because
57             * the parser is not able to recognize ignorable whitespace if
58             * the DTD is missing or not interpreted.
59             * @throws XMLStreamException if anything other than space characters are encountered
60             */
61            public XMLEvent nextTag() throws XMLStreamException;
62
63            /**
64             * Get the value of a feature/property from the underlying implementation
65             * @param name The name of the property
66             * @return The value of the property
67             * @throws IllegalArgumentException if the property is not supported
68             */
69            public Object getProperty(java.lang.String name)
70                    throws java.lang.IllegalArgumentException;
71
72            /**
73             * Frees any resources associated with this Reader.  This method does not close the
74             * underlying input source.
75             * @throws XMLStreamException if there are errors freeing associated resources
76             */
77            public void close() throws XMLStreamException;
78        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.