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


javax.xml.stream.XMLEventReader

All known Subclasses:   javax.xml.stream.util.EventReaderDelegate,
XMLEventReader
public interface XMLEventReader extends Iterator(Code)
This is the top level interface for parsing XML Events. It provides the ability to peek at the next event and returns configuration information through the property interface.
version:
   1.0
author:
   Copyright (c) 2003 by BEA Systems. All Rights Reserved.
See Also:   XMLInputFactory
See Also:   XMLEventWriter




Method Summary
public  voidclose()
     Frees any resources associated with this Reader.
public  StringgetElementText()
     Reads the content of a text-only element.
public  ObjectgetProperty(java.lang.String name)
    
public  booleanhasNext()
     Check if there are more events.
public  XMLEventnextEvent()
    
public  XMLEventnextTag()
     Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached.
public  XMLEventpeek()
     Check the next XMLEvent without reading it from the stream.



Method Detail
close
public void close() throws XMLStreamException(Code)
Frees any resources associated with this Reader. This method does not close the underlying input source.
throws:
  XMLStreamException - if there are errors freeing associated resources



getElementText
public String getElementText() throws XMLStreamException(Code)
Reads the content of a text-only element. Precondition: the current event is START_ELEMENT. Postcondition: The current event is the corresponding END_ELEMENT.
throws:
  XMLStreamException - if the current event is not a START_ELEMENTor if a non text element is encountered



getProperty
public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException(Code)
Get the value of a feature/property from the underlying implementation
Parameters:
  name - The name of the property The value of the property
throws:
  IllegalArgumentException - if the property is not supported



hasNext
public boolean hasNext()(Code)
Check if there are more events. Returns true if there are more events and false otherwise. true if the event reader has more events, false otherwise



nextEvent
public XMLEvent nextEvent() throws XMLStreamException(Code)
Get the next XMLEvent
See Also:   XMLEvent
throws:
  XMLStreamException - if there is an error with the underlying XML.
throws:
  NoSuchElementException - iteration has no more elements.



nextTag
public XMLEvent nextTag() throws XMLStreamException(Code)
Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached. If anything other than space characters are encountered, an exception is thrown. This method should be used when processing element-only content because the parser is not able to recognize ignorable whitespace if the DTD is missing or not interpreted.
throws:
  XMLStreamException - if anything other than space characters are encountered



peek
public XMLEvent peek() throws XMLStreamException(Code)
Check the next XMLEvent without reading it from the stream. Returns null if the stream is at EOF or has no more XMLEvents. A call to peek() will be equal to the next return of next().
See Also:   XMLEvent
throws:
  XMLStreamException -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.