Version 1.2 (June 2013)
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
utils.ZipArchive Class Reference

Class to create and update zip archives that contain simulation result files. More...

Public Member Functions

 ZipArchive (String zipFileName) throws IOException
 Constructor to open a zip file output stream and set the zip file name. More...
 
final void addToZipArchiveAndDelete (File f) throws IOException
 Adds a simulation results file to its respective zip archive and then deletes the result file. More...
 
final void addToZipArchiveAndKeepLast (File f, File fNew) throws IOException
 Adds a simulation results file to its respective zip archive, and keeps the result file under a specified name. More...
 
void close () throws IOException
 Closes the zip file results archive. More...
 

Detailed Description

Class to create and update zip archives that contain simulation result files.

iDynoMiCS simulations can produce a large number of result files, depending on the output period specified. With each timestep these files are added to a zip archive to keep these files together. This class contains methods to create and update these files

Constructor & Destructor Documentation

utils.ZipArchive.ZipArchive ( String  zipFileName) throws IOException

Constructor to open a zip file output stream and set the zip file name.

Constructor to open a zip file output stream and set the zip file name

Parameters
zipFileNameThe name assigned to this zip file of simulation results
Exceptions
IOExceptionException thrown if this stream cannot be opened

Member Function Documentation

final void utils.ZipArchive.addToZipArchiveAndDelete ( File  f) throws IOException

Adds a simulation results file to its respective zip archive and then deletes the result file.

Add a simulation results file to its respective zip archive. The file itself is deleted after this has occurred

Parameters
fThe results file to be added to the zip archive
Exceptions
IOExceptionException thrown if this zip file cannot be opened
final void utils.ZipArchive.addToZipArchiveAndKeepLast ( File  f,
File  fNew 
) throws IOException

Adds a simulation results file to its respective zip archive, and keeps the result file under a specified name.

Add a simulation results file to its respective zip archive. In this version of the method the result file is retained

Parameters
fThe results file to be added to the zip archive
fNewThe new name to be assigned to this results file
Exceptions
IOExceptionException thrown if this stream cannot be opened
void utils.ZipArchive.close ( ) throws IOException

Closes the zip file results archive.

Closes the zip file results archive

Exceptions
IOExceptionException thrown if the file cannot be closed

The documentation for this class was generated from the following file: