public class WebappStructureSerializer
extends java.lang.Object
WebappStructure back and forth.| Modifier and Type | Field and Description |
|---|---|
private static com.thoughtworks.xstream.XStream |
XSTREAM |
| Constructor and Description |
|---|
WebappStructureSerializer()
Creates a new instance of the serializer.
|
| Modifier and Type | Method and Description |
|---|---|
WebappStructure |
fromXml(java.io.File file)
Reads the
WebappStructure from the specified file. |
void |
toXml(WebappStructure webappStructure,
java.io.File targetFile)
Saves the
WebappStructure to the specified file. |
public WebappStructureSerializer()
public WebappStructure fromXml(java.io.File file) throws java.io.IOException
WebappStructure from the specified file.file - the file containing the webapp structurejava.io.IOException - if an error occurred while reading the structurepublic void toXml(WebappStructure webappStructure, java.io.File targetFile) throws java.io.IOException
WebappStructure to the specified file.webappStructure - the structure to savetargetFile - the file to use to save the structurejava.io.IOException - if an error occurred while saving the webapp structure