Java Doc for XMLUtils.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » util » 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 AXIS2 » kernal » org.apache.axis2.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.util.XMLUtils

XMLUtils
public class XMLUtils (Code)

Inner Class :public static class ParserErrorHandler implements ErrorHandler

Field Summary
final public static  StringcharEncoding
    


Method Summary
public static  Stringbase64encode(byte[] bytes)
    
public static  NodefindNode(Node node, QName name)
     Finds a Node with a given QNameb.
public static  StringgetChildCharacterData(Element parentEl)
     Concatinates all the text and cdata node children of this elem and returns the resulting text. (by Matt Duftler)
Parameters:
  parentEl - the element whose cdata/text node values are tobe combined.
public static  InputSourcegetEmptyInputSource()
    
public static  InputSourcegetInputSourceFromURI(String uri)
     Utility to get the bytes uri.
public static  StringgetNamespace(String prefix, Node e)
    
public static  StringgetPrefix(String uri, Node e)
    
public static  QNamegetQNameFromString(String str, Node e)
     Returns a QName when passed a string like "foo:bar" by mapping the "foo" prefix to a namespace in the context of the given Node.
public static  StringgetStringForQName(QName qname, Element e)
     Returns a string for a particular QName, mapping a new prefix if necessary.
public static  voidinitSAXFactory(String factoryClassName, boolean namespaceAware, boolean validating)
     Initializes the SAX parser factory.
Parameters:
  factoryClassName - The (optional) class name of the desiredSAXParserFactory implementation.
public static  DocumentnewDocument()
     Gets an empty new Document.
public static  DocumentnewDocument(InputSource inp)
     Gets a new Document read from the input source.
public static  DocumentnewDocument(InputStream inp)
    
public static  DocumentnewDocument(String uri)
    
public static  DocumentnewDocument(String uri, String username, String password)
     Creates a new document from the given URI.
public static  voidreleaseSAXParser(SAXParser parser)
     Returns a SAX parser for reuse.
public static  ElementtoDOM(OMElement element)
     Converts a given OMElement to a DOM Element.
public static  OMElementtoOM(Element element)
     Converts a given DOM Element to an OMElement.
public static  OMNodetoOM(InputStream inputStream)
    
public static  OMNodetoOM(Reader reader)
    

Field Detail
charEncoding
final public static String charEncoding(Code)





Method Detail
base64encode
public static String base64encode(byte[] bytes)(Code)



findNode
public static Node findNode(Node node, QName name)(Code)
Finds a Node with a given QNameb.
Parameters:
  node - parent node
Parameters:
  name - QName of the child we need to find Returns child node.



getChildCharacterData
public static String getChildCharacterData(Element parentEl)(Code)
Concatinates all the text and cdata node children of this elem and returns the resulting text. (by Matt Duftler)
Parameters:
  parentEl - the element whose cdata/text node values are tobe combined. Returns the concatinated string.



getEmptyInputSource
public static InputSource getEmptyInputSource()(Code)



getInputSourceFromURI
public static InputSource getInputSourceFromURI(String uri)(Code)
Utility to get the bytes uri. Does NOT handle authenticated URLs, use getInputSourceFromURI(uri, username, password)
Parameters:
  uri - the resource to get



getNamespace
public static String getNamespace(String prefix, Node e)(Code)



getPrefix
public static String getPrefix(String uri, Node e)(Code)



getQNameFromString
public static QName getQNameFromString(String str, Node e)(Code)
Returns a QName when passed a string like "foo:bar" by mapping the "foo" prefix to a namespace in the context of the given Node. Returns a QName generated from the given string representation.



getStringForQName
public static String getStringForQName(QName qname, Element e)(Code)
Returns a string for a particular QName, mapping a new prefix if necessary.



initSAXFactory
public static void initSAXFactory(String factoryClassName, boolean namespaceAware, boolean validating)(Code)
Initializes the SAX parser factory.
Parameters:
  factoryClassName - The (optional) class name of the desiredSAXParserFactory implementation. Will beassigned to the system propertyjavax.xml.parsers.SAXParserFactoryunless this property is already set.If null, leaves current settingalone.
Parameters:
  namespaceAware - true if we want a namespace-aware parser
Parameters:
  validating - true if we want a validating parser



newDocument
public static Document newDocument() throws ParserConfigurationException(Code)
Gets an empty new Document. Returns Document.
throws:
  ParserConfigurationException - if construction problems occur



newDocument
public static Document newDocument(InputSource inp) throws ParserConfigurationException, SAXException, IOException(Code)
Gets a new Document read from the input source. Returns Document.
throws:
  ParserConfigurationException - if construction problems occur
throws:
  SAXException - if the document has xml sax problems
throws:
  IOException - if i/o exceptions occur



newDocument
public static Document newDocument(InputStream inp) throws ParserConfigurationException, SAXException, IOException(Code)
Gets a new Document read from the input stream Returns Document.
throws:
  ParserConfigurationException - if construction problems occur
throws:
  SAXException - if the document has xml sax problems
throws:
  IOException - if i/o exceptions occur



newDocument
public static Document newDocument(String uri) throws ParserConfigurationException, SAXException, IOException(Code)
Gets a new Document read from the indicated uri Returns Document.
throws:
  ParserConfigurationException - if construction problems occur
throws:
  SAXException - if the document has xml sax problems
throws:
  IOException - if i/o exceptions occur



newDocument
public static Document newDocument(String uri, String username, String password) throws ParserConfigurationException, SAXException, IOException(Code)
Creates a new document from the given URI. Uses the username and password if the URI requires authentication.
Parameters:
  uri - the resource to get
Parameters:
  username - basic auth username
Parameters:
  password - basic auth password
throws:
  ParserConfigurationException - if construction problems occur
throws:
  SAXException - if the document has xml sax problems
throws:
  IOException - if i/o exceptions occur



releaseSAXParser
public static void releaseSAXParser(SAXParser parser)(Code)
Returns a SAX parser for reuse.
Parameters:
  parser - A SAX parser that is available for reuse



toDOM
public static Element toDOM(OMElement element) throws Exception(Code)
Converts a given OMElement to a DOM Element.
Parameters:
  element - Returns Element.
throws:
  Exception -



toOM
public static OMElement toOM(Element element) throws Exception(Code)
Converts a given DOM Element to an OMElement.
Parameters:
  element - Returns OMElement.
throws:
  Exception -



toOM
public static OMNode toOM(InputStream inputStream) throws XMLStreamException(Code)
Converts a given inputstream to an OMNode
Parameters:
  inputStream -
throws:
  javax.xml.stream.XMLStreamException -



toOM
public static OMNode toOM(Reader reader) throws XMLStreamException(Code)
Converts a given Reader to an OMNode
Parameters:
  reader -
throws:
  XMLStreamException -



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.