org.codehaus.cargo.module.webapp
Class WarArchiveIo

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

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

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

Constructor Detail

WarArchiveIo

protected WarArchiveIo()
Constructor.

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


Copyright © 2004-2012 Codehaus. All Rights Reserved.