Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
Static Public Member Functions | List of all members
SolidFramework.Plumbing.GZip Class Reference

Represents GZip functionality More...

Static Public Member Functions

static GZipResult Compress (string lpSourceFolder, string lpDestFolder, string zipFileName)
 Compress More...
 
static GZipResult Compress (string lpSourceFolder, string searchPattern, SearchOption searchOption, string lpDestFolder, string zipFileName, bool deleteTempFile)
 Compress More...
 
static GZipResult Compress (FileInfo[] files, string lpBaseFolder, string lpDestFolder, string zipFileName)
 Compress More...
 
static GZipResult Compress (FileInfo[] files, string lpBaseFolder, string lpDestFolder, string zipFileName, bool deleteTempFile)
 Compress More...
 
static GZipResult Decompress (Stream srcStream, string lpDestFolder, string zipFileName, ProgressTicker ticker)
 Decompresses the specified SRC stream. More...
 
static GZipResult Decompress (string lpSourceFolder, string lpDestFolder, string zipFileName, Boolean deleteTempFile)
 Decompresses from the specified source folder. More...
 

Detailed Description

Represents GZip functionality

Member Function Documentation

◆ Compress() [1/4]

static GZipResult SolidFramework.Plumbing.GZip.Compress ( FileInfo[]  files,
string  lpBaseFolder,
string  lpDestFolder,
string  zipFileName 
)
static

Compress

Parameters
filesArray of FileInfo objects to be included in the zip file
lpBaseFolderBase folder to use when creating relative paths for the files stored in the zip file. For example, if lpBaseFolder is 'C:/zipTest/Files/', and there is a file 'C:/zipTest/Files/folder1/sample.txt' in the 'files' array, the relative path for sample.txt will be 'folder1/sample.txt'
lpDestFolderFolder to write the zip file into
zipFileNameName of the zip file to write

◆ Compress() [2/4]

static GZipResult SolidFramework.Plumbing.GZip.Compress ( FileInfo[]  files,
string  lpBaseFolder,
string  lpDestFolder,
string  zipFileName,
bool  deleteTempFile 
)
static

Compress

Parameters
filesArray of FileInfo objects to be included in the zip file
lpBaseFolderBase folder to use when creating relative paths for the files stored in the zip file. For example, if lpBaseFolder is 'C:/zipTest/Files/', and there is a file 'C:/zipTest/Files/folder1/sample.txt' in the 'files' array, the relative path for sample.txt will be 'folder1/sample.txt'
lpDestFolderFolder to write the zip file into
zipFileNameName of the zip file to write
deleteTempFileBoolean, true deleted the intermediate temp file, false leaves the temp file in lpDestFolder (for debugging)

◆ Compress() [3/4]

static GZipResult SolidFramework.Plumbing.GZip.Compress ( string  lpSourceFolder,
string  lpDestFolder,
string  zipFileName 
)
static

Compress

Parameters
lpSourceFolderThe location of the files to include in the zip file, all files including files in subfolders will be included.
lpDestFolderFolder to write the zip file into
zipFileNameName of the zip file to write

◆ Compress() [4/4]

static GZipResult SolidFramework.Plumbing.GZip.Compress ( string  lpSourceFolder,
string  searchPattern,
SearchOption  searchOption,
string  lpDestFolder,
string  zipFileName,
bool  deleteTempFile 
)
static

Compress

Parameters
lpSourceFolderThe location of the files to include in the zip file
searchPatternSearch pattern (ie "*.*" or "*.txt" or "*.gif") to idendify what files in lpSourceFolder to include in the zip file
searchOptionOnly files in lpSourceFolder or include files in subfolders also
lpDestFolderFolder to write the zip file into
zipFileNameName of the zip file to write
deleteTempFileBoolean, true deleted the intermediate temp file, false leaves the temp file in lpDestFolder (for debugging)

◆ Decompress() [1/2]

static GZipResult SolidFramework.Plumbing.GZip.Decompress ( Stream  srcStream,
string  lpDestFolder,
string  zipFileName,
ProgressTicker  ticker 
)
static

Decompresses the specified SRC stream.

Parameters
srcStreamThe SRC stream.
lpDestFolderThe destination folder.
zipFileNameName of the zip file.
tickerThe ticker.
Returns
Results

◆ Decompress() [2/2]

static GZipResult SolidFramework.Plumbing.GZip.Decompress ( string  lpSourceFolder,
string  lpDestFolder,
string  zipFileName,
Boolean  deleteTempFile 
)
static

Decompresses from the specified source folder.

Parameters
lpSourceFolderThe source folder.
lpDestFolderThe destination folder.
zipFileNameName of the zip file.
deleteTempFileif set to true [delete temp file].
Returns
Results