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