org.apache.maven.plugin.war.util
Class WebappStructureSerializer

java.lang.Object
  extended by org.apache.maven.plugin.war.util.WebappStructureSerializer

public class WebappStructureSerializer
extends Object

Serializes WebappStructure back and forth.

Version:
$Id: WebappStructureSerializer.html 868453 2013-07-05 11:25:41Z olamy $
Author:
Stephane Nicoll

Constructor Summary
WebappStructureSerializer()
          Creates a new instance of the serializer.
 
Method Summary
 WebappStructure fromXml(File file)
          Reads the WebappStructure from the specified file.
 void toXml(WebappStructure webappStructure, File targetFile)
          Saves the WebappStructure to the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappStructureSerializer

public WebappStructureSerializer()
Creates a new instance of the serializer.

Method Detail

fromXml

public WebappStructure fromXml(File file)
                        throws IOException
Reads the WebappStructure from the specified file.

Parameters:
file - the file containing the webapp structure
Returns:
the webapp structure
Throws:
IOException - if an error occurred while reading the structure

toXml

public void toXml(WebappStructure webappStructure,
                  File targetFile)
           throws IOException
Saves the WebappStructure to the specified file.

Parameters:
webappStructure - the structure to save
targetFile - the file to use to save the structure
Throws:
IOException - if an error occurred while saving the webapp structure


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.