public class SaveTask
extends java.lang.Object
| Constructor and Description |
|---|
SaveTask() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
generateItemListToXML(java.util.List<Item> itemList)
serialize all objects to a xml file.
|
void |
saveGraphConfiguration(java.lang.String configPath,
java.util.List<Item> itemList)
method for saving the additional information of the nodes.
|
void |
saveXML(java.lang.String xmlPath,
java.lang.String xmlContent)
method for save the xml file.
|
public void saveGraphConfiguration(java.lang.String configPath,
java.util.List<Item> itemList)
throws java.io.IOException
configPath - the path in which the configuration should be located. For example, is as follows:
"C:\Users\admin\Documents\example-3.10.15\config"itemList - List of items to save.java.io.IOException - if the xml can't saveprivate java.lang.String generateItemListToXML(java.util.List<Item> itemList)
itemList - the item list where should be transferred to the xml file.public void saveXML(java.lang.String xmlPath,
java.lang.String xmlContent)
throws java.io.IOException
xmlPath - location of the xml filexmlContent - the xml contentjava.io.IOException - if the xml can't save