Helps in handling Zip-compression of Streams and files.
More...
|
| static MemoryStream | DeflateFileIntoMemoryStream (string AFilePath) |
| | Loads a file, Zip-compresses it in memory and returns it as a MemoryStream. More...
|
| |
| static MemoryStream | DeflateFilesIntoMemoryStream (string[] AFilePaths, Boolean APreservePath, String AZipPassword) |
| | Loads a any number of files, Zip-compresses them in memory into one Zip archive and returns it as a MemoryStream. More...
|
| |
| static MemoryStream | InflateFilesFromStream (Stream AZippedStream) |
| | Uncompress a Zip-compressed Stream into a MemoryStream. More...
|
| |
Helps in handling Zip-compression of Streams and files.
◆ DeflateFileIntoMemoryStream()
| static MemoryStream Ict.Common.IO.TFileHelper.Streams.Compression.DeflateFileIntoMemoryStream |
( |
string |
AFilePath | ) |
|
|
inlinestatic |
Loads a file, Zip-compresses it in memory and returns it as a MemoryStream.
- Parameters
-
| AFilePath | Filename (including Path) to read from. |
- Returns
- A MemoryStream with the Zip-compressed contents of the file specified in AFilePath .
◆ DeflateFilesIntoMemoryStream()
| static MemoryStream Ict.Common.IO.TFileHelper.Streams.Compression.DeflateFilesIntoMemoryStream |
( |
string[] |
AFilePaths, |
|
|
Boolean |
APreservePath, |
|
|
String |
AZipPassword |
|
) |
| |
|
inlinestatic |
Loads a any number of files, Zip-compresses them in memory into one Zip archive and returns it as a MemoryStream.
- Parameters
-
| AFilePaths | Array of Filenames (including Paths) to read from. |
| APreservePath | true to create a folder structure in the ZIP |
| AZipPassword | empty for no password |
- Returns
- A MemoryStream with the Zip-compressed contents of all the files specified in AFilePaths .
◆ InflateFilesFromStream()
| static MemoryStream Ict.Common.IO.TFileHelper.Streams.Compression.InflateFilesFromStream |
( |
Stream |
AZippedStream | ) |
|
|
inlinestatic |
Uncompress a Zip-compressed Stream into a MemoryStream.
- Parameters
-
| AZippedStream | Stream containing files that are Zip-compressed. |
- Returns
- A MemoryStream with the uncompressed contents of the Stream specified in AZippedStream .
The documentation for this class was generated from the following file: