Java Doc for DOMStreamReader.java in  » 6.0-JDK-Modules » jax-ws-runtime » com » sun » xml » ws » streaming » 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 » jax ws runtime » com.sun.xml.ws.streaming 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.streaming.DOMStreamReader

DOMStreamReader
final public class DOMStreamReader implements XMLStreamReader,NamespaceContext(Code)
Create an XMLStreamReader on top of a DOM tree.

Since various libraries as well as users often create "incorrect" DOM node, this class spends a lot of efforts making sure that broken DOM trees are nevertheless interpreted correctly.

For example, if a DOM level 1 tree is passed, each method will attempt to return the correct value by using Node.getNodeName .

Similarly, if DOM is missing explicit namespace declarations, this class attempts to emulate necessary declarations.
author:
   Santiago.PericasGeertsen@sun.com
author:
   Kohsuke Kawaguchi



Field Summary
 boolean_needAttributesSplit
     Flag indicating if DOMStreamReader._namedNodeMap is already split into DOMStreamReader._currentAttributes and Scope.currentNamespaces .
 int_state
     State of this reader.

Constructor Summary
public  DOMStreamReader()
    
public  DOMStreamReader(Node node)
    

Method Summary
public  voidclose()
    
public  intgetAttributeCount()
    
public  StringgetAttributeLocalName(int index)
     Return an attribute's local name.
public  QNamegetAttributeName(int index)
     Return an attribute's qname.
public  StringgetAttributeNamespace(int index)
    
public  StringgetAttributePrefix(int index)
    
public  StringgetAttributeType(int index)
    
public  StringgetAttributeValue(int index)
    
public  StringgetAttributeValue(String namespaceURI, String localName)
    
public  StringgetCharacterEncodingScheme()
    
public  StringgetElementText()
    
public  StringgetEncoding()
    
public  intgetEventType()
    
public  StringgetLocalName()
     Return an element's local name.
public  LocationgetLocation()
    
public  javax.xml.namespace.QNamegetName()
     Return an element's qname.
public  NamespaceContextgetNamespaceContext()
    
public  intgetNamespaceCount()
    
public  StringgetNamespacePrefix(int index)
    
public  StringgetNamespaceURI(int index)
    
public  StringgetNamespaceURI()
    
public  StringgetNamespaceURI(String prefix)
     This method is not particularly fast, but shouldn't be called very often.
public  StringgetPIData()
    
public  StringgetPITarget()
    
public  StringgetPrefix(String nsUri)
    
public  StringgetPrefix()
    
public  IteratorgetPrefixes(String nsUri)
    
public  ObjectgetProperty(String str)
    
public  StringgetText()
    
public  char[]getTextCharacters()
    
public  intgetTextCharacters(int sourceStart, char[] target, int targetStart, int targetLength)
    
public  intgetTextLength()
    
public  intgetTextStart()
    
public  StringgetVersion()
    
public  booleanhasName()
    
public  booleanhasNext()
    
public  booleanhasText()
    
public  booleanisAttributeSpecified(int param)
    
public  booleanisCharacters()
    
public  booleanisEndElement()
    
public  booleanisStandalone()
    
public  booleanisStartElement()
    
public  booleanisWhiteSpace()
    
public  intnext()
    
public  intnextTag()
    
public  voidrequire(int type, String namespaceURI, String localName)
    
public  voidsetCurrentNode(Node node)
    
public  booleanstandaloneSet()
    

Field Detail
_needAttributesSplit
boolean _needAttributesSplit(Code)
Flag indicating if DOMStreamReader._namedNodeMap is already split into DOMStreamReader._currentAttributes and Scope.currentNamespaces .



_state
int _state(Code)
State of this reader. Any of the valid states defined in StAX' XMLStreamConstants class.




Constructor Detail
DOMStreamReader
public DOMStreamReader()(Code)



DOMStreamReader
public DOMStreamReader(Node node)(Code)




Method Detail
close
public void close() throws XMLStreamException(Code)



getAttributeCount
public int getAttributeCount()(Code)



getAttributeLocalName
public String getAttributeLocalName(int index)(Code)
Return an attribute's local name. Handle the case of DOM level 1 nodes.



getAttributeName
public QName getAttributeName(int index)(Code)
Return an attribute's qname. Handle the case of DOM level 1 nodes.



getAttributeNamespace
public String getAttributeNamespace(int index)(Code)



getAttributePrefix
public String getAttributePrefix(int index)(Code)



getAttributeType
public String getAttributeType(int index)(Code)



getAttributeValue
public String getAttributeValue(int index)(Code)



getAttributeValue
public String getAttributeValue(String namespaceURI, String localName)(Code)



getCharacterEncodingScheme
public String getCharacterEncodingScheme()(Code)



getElementText
public String getElementText() throws javax.xml.stream.XMLStreamException(Code)



getEncoding
public String getEncoding()(Code)



getEventType
public int getEventType()(Code)



getLocalName
public String getLocalName()(Code)
Return an element's local name. Handle the case of DOM level 1 nodes.



getLocation
public Location getLocation()(Code)



getName
public javax.xml.namespace.QName getName()(Code)
Return an element's qname. Handle the case of DOM level 1 nodes.



getNamespaceContext
public NamespaceContext getNamespaceContext()(Code)



getNamespaceCount
public int getNamespaceCount()(Code)



getNamespacePrefix
public String getNamespacePrefix(int index)(Code)



getNamespaceURI
public String getNamespaceURI(int index)(Code)



getNamespaceURI
public String getNamespaceURI()(Code)



getNamespaceURI
public String getNamespaceURI(String prefix)(Code)
This method is not particularly fast, but shouldn't be called very often. If we start to use it more, we should keep track of the NS declarations using a NamespaceContext implementation instead.



getPIData
public String getPIData()(Code)



getPITarget
public String getPITarget()(Code)



getPrefix
public String getPrefix(String nsUri)(Code)



getPrefix
public String getPrefix()(Code)



getPrefixes
public Iterator getPrefixes(String nsUri)(Code)



getProperty
public Object getProperty(String str) throws IllegalArgumentException(Code)



getText
public String getText()(Code)



getTextCharacters
public char[] getTextCharacters()(Code)



getTextCharacters
public int getTextCharacters(int sourceStart, char[] target, int targetStart, int targetLength) throws XMLStreamException(Code)



getTextLength
public int getTextLength()(Code)



getTextStart
public int getTextStart()(Code)



getVersion
public String getVersion()(Code)



hasName
public boolean hasName()(Code)



hasNext
public boolean hasNext() throws javax.xml.stream.XMLStreamException(Code)



hasText
public boolean hasText()(Code)



isAttributeSpecified
public boolean isAttributeSpecified(int param)(Code)



isCharacters
public boolean isCharacters()(Code)



isEndElement
public boolean isEndElement()(Code)



isStandalone
public boolean isStandalone()(Code)



isStartElement
public boolean isStartElement()(Code)



isWhiteSpace
public boolean isWhiteSpace()(Code)



next
public int next() throws XMLStreamException(Code)



nextTag
public int nextTag() throws javax.xml.stream.XMLStreamException(Code)



require
public void require(int type, String namespaceURI, String localName) throws javax.xml.stream.XMLStreamException(Code)



setCurrentNode
public void setCurrentNode(Node node)(Code)



standaloneSet
public boolean standaloneSet()(Code)



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.