public class Zipper
extends java.lang.Object
| Constructor and Description | 
|---|
Zipper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
compress(java.lang.String inpath,
        java.lang.String[] infiles,
        java.lang.String outfile)
Method to compress input files to a single output file. 
 | 
static void | 
compressNewParametersObj(java.lang.String infile,
                        java.lang.String outfile,
                        ParameterCollection parColl)
Method to place a new parameter collection into zip file. 
 | 
static void | 
compressResultsObj(java.lang.String infile,
                  java.lang.String outfile,
                  ParameterCollection parColl,
                  CollectedResults collRes)
Method to compress and insert simulation results to a zip file. 
 | 
static CollectedInputs | 
decompressInputs(java.lang.String inzip)
Method to decompress inputs from zip file. 
 | 
static CollectedResults | 
decompressResults(java.lang.String inzip)
Method to decompress results from zip file. 
 | 
static java.io.InputStream | 
getStream(java.util.zip.ZipInputStream zis,
         byte[] buffer)
Method to get input stream from zip stream. 
 | 
public static void compress(java.lang.String inpath,
                            java.lang.String[] infiles,
                            java.lang.String outfile)
                     throws java.io.IOException
inpath - Path of input filesinfiles - Array of input file namesoutfile - Output filejava.io.IOExceptionpublic static void compressNewParametersObj(java.lang.String infile,
                                            java.lang.String outfile,
                                            ParameterCollection parColl)
                                     throws java.io.IOException,
                                            javax.xml.bind.JAXBException
infile - Input zip fileoutfile - Output zip fileparColl - Parameter collection to be transformed to parameters.xml file and placed in output zip filejava.io.IOExceptionjavax.xml.bind.JAXBExceptionpublic static void compressResultsObj(java.lang.String infile,
                                      java.lang.String outfile,
                                      ParameterCollection parColl,
                                      CollectedResults collRes)
                               throws java.io.IOException,
                                      javax.xml.bind.JAXBException
infile - Input zip fileoutfile - Output zip fileparColl - Parameter collection to be updated in zip filecollRes - Collected simulation results to be inserted/updated in zip filejava.io.IOExceptionjavax.xml.bind.JAXBExceptionpublic static java.io.InputStream getStream(java.util.zip.ZipInputStream zis,
                                            byte[] buffer)
                                     throws java.io.IOException
zis - Zip file input streambuffer - Byte bufferjava.io.IOExceptionpublic static CollectedInputs decompressInputs(java.lang.String inzip) throws java.io.IOException, javax.xml.bind.JAXBException
inzip - Input zip file namejava.io.IOExceptionjavax.xml.bind.JAXBExceptionpublic static CollectedResults decompressResults(java.lang.String inzip) throws java.io.IOException, javax.xml.bind.JAXBException
inzip - Input zip file namejava.io.IOExceptionjavax.xml.bind.JAXBException