public class WebappStructureSerializer extends Object
WebappStructure back and forth.| Constructor and Description |
|---|
WebappStructureSerializer()
Creates a new instance of the serializer.
|
| Modifier and Type | Method and Description |
|---|---|
WebappStructure |
fromXml(File file)
Reads the
WebappStructure from the specified file. |
void |
toXml(WebappStructure webappStructure,
File targetFile)
Saves the
WebappStructure to the specified file. |
public WebappStructureSerializer()
public WebappStructure fromXml(File file) throws IOException
WebappStructure from the specified file.file - the file containing the webapp structureIOException - if an error occurred while reading the structurepublic void toXml(WebappStructure webappStructure, File targetFile) throws IOException
WebappStructure to the specified file.webappStructure - the structure to savetargetFile - the file to use to save the structureIOException - if an error occurred while saving the webapp structureCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.