Dart.PowerTCP.Zip Namespace > Archive Class > Open Method : Open(Stream) Method |
<DescriptionAttribute("To load the given source stream archive to the collection for further manipulation.")> Public Overloads Sub Open( _ ByVal zipArchive As Stream _ )
[Description("To load the given source stream archive to the collection for further manipulation.")] public void Open( Stream zipArchive )
[Description("To load the given source stream archive to the collection for further manipulation.")] public: void Open( Stream* zipArchive )
[Description("To load the given source stream archive to the collection for further manipulation.")] public: void Open( Stream^ zipArchive )
This overload is intended to open Stream-based classes and populate the Archive collection.
Please note that an Open operation will clear any pre-existing items in the collection.
If a zip operation is executed with a stream destination, and that destination stream is the same as the zipArchive stream, the zipArchive stream will be overwritten with the resultant compressed data.
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Zip" ' at the top of your class. ' Open a compressed stream. This populates the Archive collection. Archive1.Open("c:\test.zip") ' Preserve the path structure and overwrite any existing files. Archive1.PreservePath = True Archive1.Overwrite = Overwrite.Always ' Unzip to c:\test Archive1.Unzip("c:\Test")
// Be sure to import the namespace by putting "using Dart.PowerTCP.Zip;" // at the top of your class. // Open a compressed stream. This populates the Archive collection. archive1.Open("c:\\test.zip"); // Preserve the path structure and overwrite any existing files. archive1.PreservePath = true; archive1.Overwrite = Overwrite.Always; // Unzip to c:\test archive1.Unzip("c:\\Test");