Java Doc for XMLUtil.java in  » Web-Framework » JAT » com » jat » util » xml » 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 Framework » JAT » com.jat.util.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jat.util.xml.XMLUtil

XMLUtil
public class XMLUtil (Code)

Title: JAT

Description: XMLUtil class contains several methods to read, write and format XML document.

Copyright: Copyright (c) 2004


author:
   stf
version:
   1.1
See Also:   org.w3c.dom.Document
See Also:   org.w3c.dom.Node
See Also:   com.jat.util.xml.XMLDocument
See Also:   com.jat.util.file.FileUtil


Field Summary
final protected static  booleanDEBUG
    
final public static  StringSTYLESHEET_NODE_NAME
    


Method Summary
public static  voidaddStrangeChar(int hashCode, String replaceString)
    
public static  booleancheckNodeType(short type)
    
public static  VectorgetAllAttributeNode(Node node)
    
public static  VectorgetAllCDataSectionNode(Node node)
    
public static  VectorgetAllChlidren(Node node, String childName)
    
public static  VectorgetAllCommentNode(Node node)
    
public static  VectorgetAllDocumentFragmentNode(Node node)
    
public static  VectorgetAllElementNode(Node node)
    
public static  VectorgetAllEntityNode(Node node)
    
public static  VectorgetAllNodes(Node node, short type)
    
protected static  voidgetAllNodes(Node node, short type, Vector nodes)
    
protected static  voidgetAllNodes(Node node, short type, String nodeName, Vector nodes)
    
public static  VectorgetAllNotationNode(Node node)
    
public static  VectorgetAllProcessingInstructionNode(Node node)
    
public static  VectorgetAllTextNode(Node node)
    
public static  AttrgetAttribute(Node node, String attrName)
    
protected static  voidgetXML(Node node)
    
public static  XMLDocumentgetXMLDocument(File xmlFile, boolean validate)
    
public static  XMLDocumentgetXMLDocument(File xmlFile, boolean validate, boolean coalescing)
    
public static  XMLDocumentgetXMLDocument(String xml, boolean validate)
    
public static  XMLDocumentgetXMLDocument(String xml, boolean validate, boolean coalescing)
    
public static  XMLDocumentgetXMLDocumentByFilename(String xmlFile, boolean validate)
    
public static  StringgetXMLString(Node node)
    
public static  StringparseAttribute(String _s)
    
public static  StringparseText(String _s)
    
public static  voidremoveAllChildNode(Node node)
    
protected static  Stringreplace(String str, String s1, String s2)
    
protected static  StringreplaceStranger(String line)
    
public static  voidsaveXML(String filename, Node node)
    

Field Detail
DEBUG
final protected static boolean DEBUG(Code)



STYLESHEET_NODE_NAME
final public static String STYLESHEET_NODE_NAME(Code)





Method Detail
addStrangeChar
public static void addStrangeChar(int hashCode, String replaceString)(Code)
add character codification
Parameters:
  hashCode -
Parameters:
  replaceString -



checkNodeType
public static boolean checkNodeType(short type)(Code)
check if type 'type' is recgnized as Node type
Parameters:
  type -



getAllAttributeNode
public static Vector getAllAttributeNode(Node node)(Code)
return all Attribute node children of node 'node'
Parameters:
  node -



getAllCDataSectionNode
public static Vector getAllCDataSectionNode(Node node)(Code)
return all DataSection node children of node 'node'
Parameters:
  node -



getAllChlidren
public static Vector getAllChlidren(Node node, String childName)(Code)



getAllCommentNode
public static Vector getAllCommentNode(Node node)(Code)
return all Comment node children of node 'node'
Parameters:
  node -



getAllDocumentFragmentNode
public static Vector getAllDocumentFragmentNode(Node node)(Code)
return all DocumentFragmenter node children of node 'node'
Parameters:
  node -



getAllElementNode
public static Vector getAllElementNode(Node node)(Code)
return all Element node children of node 'node'
Parameters:
  node -



getAllEntityNode
public static Vector getAllEntityNode(Node node)(Code)
return all Entity node children of node 'node'
Parameters:
  node -



getAllNodes
public static Vector getAllNodes(Node node, short type)(Code)
return all node children of node 'node' of the type 'type'
Parameters:
  node -
Parameters:
  type -



getAllNodes
protected static void getAllNodes(Node node, short type, Vector nodes)(Code)



getAllNodes
protected static void getAllNodes(Node node, short type, String nodeName, Vector nodes)(Code)



getAllNotationNode
public static Vector getAllNotationNode(Node node)(Code)
return all Notation node children of node 'node'
Parameters:
  node -



getAllProcessingInstructionNode
public static Vector getAllProcessingInstructionNode(Node node)(Code)
return all ProcessingInstruction node children of node 'node'
Parameters:
  node -



getAllTextNode
public static Vector getAllTextNode(Node node)(Code)
return all Text node children of node 'node'
Parameters:
  node -



getAttribute
public static Attr getAttribute(Node node, String attrName)(Code)



getXML
protected static void getXML(Node node)(Code)



getXMLDocument
public static XMLDocument getXMLDocument(File xmlFile, boolean validate) throws IOException, ParserConfigurationException, SAXException(Code)
return the instance of XMLDocument
Parameters:
  xmlFile -
Parameters:
  validate -
exception:
  java.io.IOException -
exception:
  javax.xml.parsers.ParserConfigurationException -
exception:
  org.xml.sax.SAXException -



getXMLDocument
public static XMLDocument getXMLDocument(File xmlFile, boolean validate, boolean coalescing) throws IOException, ParserConfigurationException, SAXException(Code)
return the instance of XMLDocument
Parameters:
  xmlFile -
Parameters:
  validate -
Parameters:
  coalescing -
exception:
  java.io.IOException -
exception:
  javax.xml.parsers.ParserConfigurationException -
exception:
  org.xml.sax.SAXException -



getXMLDocument
public static XMLDocument getXMLDocument(String xml, boolean validate) throws IOException, ParserConfigurationException, SAXException(Code)
return the instance of XMLDocument
Parameters:
  xml -
Parameters:
  validate -
exception:
  java.io.IOException -
exception:
  javax.xml.parsers.ParserConfigurationException -
exception:
  org.xml.sax.SAXException -



getXMLDocument
public static XMLDocument getXMLDocument(String xml, boolean validate, boolean coalescing) throws IOException, ParserConfigurationException, SAXException(Code)
return the instance of XMLDocument
Parameters:
  xml -
Parameters:
  validate -
Parameters:
  coalescing -
exception:
  java.io.IOException -
exception:
  javax.xml.parsers.ParserConfigurationException -
exception:
  org.xml.sax.SAXException -



getXMLDocumentByFilename
public static XMLDocument getXMLDocumentByFilename(String xmlFile, boolean validate) throws IOException, ParserConfigurationException, SAXException(Code)
return the instance of XMLDocument
Parameters:
  xmlFile -
Parameters:
  validate -
exception:
  java.io.IOException -
exception:
  javax.xml.parsers.ParserConfigurationException -
exception:
  org.xml.sax.SAXException -



getXMLString
public static String getXMLString(Node node)(Code)
return the String representin gthe XML format from the node "node"
Parameters:
  node -



parseAttribute
public static String parseAttribute(String _s)(Code)



parseText
public static String parseText(String _s)(Code)



removeAllChildNode
public static void removeAllChildNode(Node node)(Code)
Remove all childern of node 'node'
Parameters:
  node -



replace
protected static String replace(String str, String s1, String s2)(Code)



replaceStranger
protected static String replaceStranger(String line)(Code)



saveXML
public static void saveXML(String filename, Node node) throws IOException(Code)
save XML from node 'node' into the file 'filename'
Parameters:
  filename -
Parameters:
  node -
exception:
  java.io.IOException -



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.