org.codehaus.cargo.module
Class JarArchiveIo

java.lang.Object
  extended by 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.

Version:
$Id: JarArchiveIo.java 1705 2008-09-02 13:14:55Z adriana $

Constructor Summary
protected JarArchiveIo()
          Constructor.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarArchiveIo

protected JarArchiveIo()
Constructor.

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


Copyright © 2004-2012 Codehaus. All Rights Reserved.