Package org.codehaus.cargo.module.webapp
Class WarArchiveIo
- java.lang.Object
-
- org.codehaus.cargo.module.webapp.WarArchiveIo
-
public class WarArchiveIo extends Object
Utility IO class for constructing War Archives. Use this class in preference to the concrete implementations of WarArchive.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WarArchiveIo()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WarArchive
open(File f)
Open a war archive.static WarArchive
open(InputStream is)
Open a war archive.static WarArchive
open(String file)
Open a war archive.
-
-
-
Method Detail
-
open
public static WarArchive open(String file) throws IOException
Open a war archive.- Parameters:
file
- Input File- Returns:
- WarArchive
- Throws:
IOException
- if an IO error occurs
-
open
public static WarArchive open(InputStream is) throws IOException
Open a war archive.- Parameters:
is
- Input Stream- Returns:
- WarArchive
- Throws:
IOException
- if an IO error occurs
-
open
public static WarArchive open(File f) throws IOException
Open a war archive.- Parameters:
f
- Input File- Returns:
- WarArchive
- Throws:
IOException
- if an IO error occurs
-
-