|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttom.library.xml.XmlTools
public class XmlTools
| Constructor Summary | |
|---|---|
XmlTools()
|
|
| Method Summary | |
|---|---|
Node |
convertToNode(InputStream is)
Converts XML to Node by providing an InputStream |
TNode |
convertXMLToTNode(InputStream is)
Converts XML to TNode by providing an input stream |
TNode |
convertXMLToTNode(String filename)
Converts XML to TNode |
Collection |
getNodes(TNode n)
Returns all TNodes contained in TNode n |
TNodeList |
nodeListToAterm(NodeList n)
Returns an ATerm representation of a NodeList |
TNode |
nodeToTNode(Node node)
Returns a TNode by providing a Node |
void |
printXMLFromTNode(TNode t)
Prints TNode t in XML format, without any extra character (ie:\n) |
void |
setDeletingWhiteSpaceNodes(boolean b_d)
Set up the deleteWhiteSpaceNodes variable |
Node |
tttttttttttt(String filename)
Converts XML to Node by providing a file name |
void |
writeXMLFileFromTNode(Writer writer,
TNode t)
Writes TNode in XML format, without any extra character (ie:\n) |
String |
xml(TNode t)
Constructs TNode in XML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlTools()
| Method Detail |
|---|
public void setDeletingWhiteSpaceNodes(boolean b_d)
b_d - a boolean which allows to define if white space nodes have to be deleted or notpublic TNode nodeToTNode(Node node)
node - the Node to normalize and convert
public TNodeList nodeListToAterm(NodeList n)
n - the NodeList
public Node tttttttttttt(String filename)
filename - the filename
public Node convertToNode(InputStream is)
is - the InputStream
public Collection getNodes(TNode n)
n - root to collect all TNodes in the tree
public TNode convertXMLToTNode(String filename)
filename - input representing XML
public TNode convertXMLToTNode(InputStream is)
is - input representing XML
public void printXMLFromTNode(TNode t)
t - TNode to print
public void writeXMLFileFromTNode(Writer writer,
TNode t)
writer - the provided writert - TNode to XMLTNodepublic String xml(TNode t)
t - this parameter can be either a TNode, a TNode list, or #TEXT("...").
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||