The Robot Application Programming Interface Delegate Project
RAPID Logo

ZipUtil Class Reference

Collaboration diagram for ZipUtil:

List of all members.

Static Public Member Functions

static File doUnzip (String outputZipFile, File inputFile) throws IOException
 Given the full input path, unzip it to the file specified in the output path.
static File doZip (String outputZipFile, String inputFilePath)
 given the full input path, provide the zip file specified in the full output path
static InputStream createInputStream (URI uri) throws IOException
static boolean getFileFromZip (URI uri, File outFile)

Static Public Attributes

static final int BUFFER = 2048

Member Function Documentation

static InputStream createInputStream ( URI  uri) throws IOException [static]

Here is the call graph for this function:

static File doUnzip ( String  outputZipFile,
File  inputFile 
) throws IOException [static]
Parameters:
outputZipFileThe directory which will contain the contents of the zip file
inputFilePathThe path to the (non-remote) zip file
Returns:
Exceptions:
IOExceptionTODO add support for a generic progress feedback
static File doZip ( String  outputZipFile,
String  inputFilePath 
) [static]
Parameters:
outputZipFilefull output file path, including filename
inputFilePathfull input file path, specific filename optional
Returns:
static boolean getFileFromZip ( URI  uri,
File  outFile 
) [static]

Here is the call graph for this function:


Member Data Documentation

final int BUFFER = 2048 [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines