Java Doc for StaxUtils.java in  » Web-Services-apache-cxf-2.0.1 » common » org » apache » cxf » staxutils » 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 » Web Services apache cxf 2.0.1 » common » org.apache.cxf.staxutils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.cxf.staxutils.StaxUtils

StaxUtils
final public class StaxUtils (Code)




Method Summary
public static  voidcopy(Document doc, XMLStreamWriter writer)
    
public static  voidcopy(Element node, XMLStreamWriter writer)
    
public static  voidcopy(XMLStreamReader reader, XMLStreamWriter writer)
     Copies the reader to the writer.
public static  XMLStreamReadercreateFilteredReader(XMLStreamReader reader, StreamFilter filter)
    
public static  XMLStreamReadercreateXMLStreamReader(InputStream in, String encoding)
    
public static  XMLStreamReadercreateXMLStreamReader(InputStream in)
    
public static  XMLStreamReadercreateXMLStreamReader(Element el)
    
public static  XMLStreamReadercreateXMLStreamReader(Document doc)
    
public static  XMLStreamReadercreateXMLStreamReader(Source source)
    
public static  XMLStreamReadercreateXMLStreamReader(Reader reader)
    
public static  XMLStreamWritercreateXMLStreamWriter(Writer out)
    
public static  XMLStreamWritercreateXMLStreamWriter(OutputStream out)
    
public static  XMLStreamWritercreateXMLStreamWriter(OutputStream out, String encoding)
    
public static  XMLStreamWritercreateXMLStreamWriter(Result r)
    
public static  StringgetUniquePrefix(XMLStreamWriter writer, String namespaceURI, boolean declare)
     Create a unique namespace uri/prefix combination.
Parameters:
  nsUri - The namespace with the specified URI.
public static  StringgetUniquePrefix(XMLStreamWriter writer)
    
public static  XMLInputFactorygetXMLInputFactory()
    
public static  XMLInputFactorygetXMLInputFactory(boolean nsAware)
    
public static  XMLOutputFactorygetXMLOutputFactory()
    
public static  voidnextEvent(XMLStreamReader dr)
    
public static  voidprintXmlFragment(XMLStreamReader reader)
    
public static  Documentread(XMLStreamReader reader)
    
public static  Documentread(DocumentBuilder builder, XMLStreamReader reader, boolean repairing)
    
public static  voidreadDocElements(Node parent, XMLStreamReader reader, boolean repairing)
    
public static  QNamereadQName(XMLStreamReader reader)
     Reads a QName from the element text.
public static  booleanskipToStartOfElement(XMLStreamReader in)
     Returns true if currently at the start of an element, otherwise move forwards to the next element start and return true, otherwise false is returned if the end of the stream is reached.
public static  booleanskipToStartOfElement(DepthXMLStreamReader in)
    
public static  booleantoNextElement(DepthXMLStreamReader dr)
    
public static  booleantoNextTag(DepthXMLStreamReader reader, QName endTag)
    
public static  booleantoNextText(DepthXMLStreamReader reader)
    
public static  voidwriteDocument(Document d, XMLStreamWriter writer, boolean repairing)
    
public static  voidwriteDocument(Document d, XMLStreamWriter writer, boolean writeProlog, boolean repairing)
    
public static  voidwriteElement(Element e, XMLStreamWriter writer, boolean repairing)
     Writes an Element to an XMLStreamWriter.
public static  voidwriteElement(Element e, XMLStreamWriter writer, boolean repairing, boolean endElement)
     Writes an Element to an XMLStreamWriter.
public static  voidwriteNode(Node n, XMLStreamWriter writer, boolean repairing)
    
public static  voidwriteStartElement(XMLStreamWriter writer, String prefix, String name, String namespace)
    



Method Detail
copy
public static void copy(Document doc, XMLStreamWriter writer) throws XMLStreamException(Code)



copy
public static void copy(Element node, XMLStreamWriter writer) throws XMLStreamException(Code)



copy
public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException(Code)
Copies the reader to the writer. The start and end document methods must be handled on the writer manually. TODO: if the namespace on the reader has been declared previously to where we are in the stream, this probably won't work.
Parameters:
  reader -
Parameters:
  writer -
throws:
  XMLStreamException -



createFilteredReader
public static XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter)(Code)



createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(InputStream in, String encoding)(Code)

Parameters:
  in -
Parameters:
  encoding -
Parameters:
  ctx -



createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(InputStream in)(Code)

Parameters:
  in -



createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(Element el)(Code)



createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(Document doc)(Code)



createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(Source source)(Code)



createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(Reader reader)(Code)

Parameters:
  reader -



createXMLStreamWriter
public static XMLStreamWriter createXMLStreamWriter(Writer out)(Code)



createXMLStreamWriter
public static XMLStreamWriter createXMLStreamWriter(OutputStream out)(Code)



createXMLStreamWriter
public static XMLStreamWriter createXMLStreamWriter(OutputStream out, String encoding)(Code)



createXMLStreamWriter
public static XMLStreamWriter createXMLStreamWriter(Result r)(Code)



getUniquePrefix
public static String getUniquePrefix(XMLStreamWriter writer, String namespaceURI, boolean declare) throws XMLStreamException(Code)
Create a unique namespace uri/prefix combination.
Parameters:
  nsUri - The namespace with the specified URI. If one doesn't exist, oneis created.
throws:
  XMLStreamException -



getUniquePrefix
public static String getUniquePrefix(XMLStreamWriter writer)(Code)



getXMLInputFactory
public static XMLInputFactory getXMLInputFactory()(Code)



getXMLInputFactory
public static XMLInputFactory getXMLInputFactory(boolean nsAware)(Code)



getXMLOutputFactory
public static XMLOutputFactory getXMLOutputFactory()(Code)



nextEvent
public static void nextEvent(XMLStreamReader dr)(Code)



printXmlFragment
public static void printXmlFragment(XMLStreamReader reader)(Code)



read
public static Document read(XMLStreamReader reader) throws XMLStreamException(Code)



read
public static Document read(DocumentBuilder builder, XMLStreamReader reader, boolean repairing) throws XMLStreamException(Code)



readDocElements
public static void readDocElements(Node parent, XMLStreamReader reader, boolean repairing) throws XMLStreamException(Code)

Parameters:
  parent -
Parameters:
  reader -
throws:
  XMLStreamException -



readQName
public static QName readQName(XMLStreamReader reader) throws XMLStreamException(Code)
Reads a QName from the element text. Reader must be positioned at the start tag.



skipToStartOfElement
public static boolean skipToStartOfElement(XMLStreamReader in) throws XMLStreamException(Code)
Returns true if currently at the start of an element, otherwise move forwards to the next element start and return true, otherwise false is returned if the end of the stream is reached.



skipToStartOfElement
public static boolean skipToStartOfElement(DepthXMLStreamReader in) throws XMLStreamException(Code)



toNextElement
public static boolean toNextElement(DepthXMLStreamReader dr)(Code)



toNextTag
public static boolean toNextTag(DepthXMLStreamReader reader, QName endTag)(Code)



toNextText
public static boolean toNextText(DepthXMLStreamReader reader)(Code)



writeDocument
public static void writeDocument(Document d, XMLStreamWriter writer, boolean repairing) throws XMLStreamException(Code)



writeDocument
public static void writeDocument(Document d, XMLStreamWriter writer, boolean writeProlog, boolean repairing) throws XMLStreamException(Code)



writeElement
public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing) throws XMLStreamException(Code)
Writes an Element to an XMLStreamWriter. The writer must already have started the doucment (via writeStartDocument()). Also, this probably won't work with just a fragment of a document. The Element should be the root element of the document.
Parameters:
  e -
Parameters:
  writer -
throws:
  XMLStreamException -



writeElement
public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing, boolean endElement) throws XMLStreamException(Code)
Writes an Element to an XMLStreamWriter. The writer must already have started the document (via writeStartDocument()). Also, this probably won't work with just a fragment of a document. The Element should be the root element of the document.
Parameters:
  e -
Parameters:
  writer -
Parameters:
  endElement - true iff the element should be ended
throws:
  XMLStreamException -



writeNode
public static void writeNode(Node n, XMLStreamWriter writer, boolean repairing) throws XMLStreamException(Code)



writeStartElement
public static void writeStartElement(XMLStreamWriter writer, String prefix, String name, String namespace) throws XMLStreamException(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.