Package eu.isas.peptideshaker.utils
Class PsZipUtils
java.lang.Object
eu.isas.peptideshaker.utils.PsZipUtils
This class contains information and methods to zip and unzip files from
PeptideShaker. Files will be unzipped to a folder constructed based on the
static fields: unzipParentFolder/unzipSubFolder/yourfolder_tempFolderName
- Author:
- Marc Vaudel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTempFolderName(String fileName) Returns the temp folder name to use when unzipping a zip file.static StringReturns the parent folder where to unzip files.static StringReturns the sub-folder where to unzip files.static voidsetUnzipParentFolder(String newFolder) Sets the parent folder where to unzip files to.
-
Field Details
-
UNZIP_SUB_FOLDER
The sub folder where the unzipped files should be stored.- See Also:
-
TEMP_FOLDER_NAME
Suffix for folders where the content of zip files should be extracted.- See Also:
-
-
Constructor Details
-
PsZipUtils
public PsZipUtils()
-
-
Method Details
-
getUnzipParentFolder
Returns the parent folder where to unzip files. Null if not set.- Returns:
- the parent folder where to unzip files.
-
getUnzipSubFolder
Returns the sub-folder where to unzip files. Null if not set.- Returns:
- the sub-folder where to unzip files
-
setUnzipParentFolder
Sets the parent folder where to unzip files to.- Parameters:
newFolder- the parent folder where to unzip files to
-
getTempFolderName
Returns the temp folder name to use when unzipping a zip file.- Parameters:
fileName- the name of the zip file- Returns:
- the folder name associated to the zip file
-