InputStreamWasJitProvided Property

DotNetZip

Ionic Zip Library v1.9.1.6 InputStreamWasJitProvided Property
ReferenceIonic.ZipZipEntryInputStreamWasJitProvided
A flag indicating whether the InputStream was provided Just-in-time.
Declaration Syntax
C# Visual Basic Visual C++
public bool InputStreamWasJitProvided { get; }
Public ReadOnly Property InputStreamWasJitProvided As Boolean
	Get
public:
property bool InputStreamWasJitProvided {
	bool get ();
}
Remarks

When creating a zip archive, an application can obtain content for one or more of the ZipEntry instances from streams, using the AddEntry(String, Stream) method. At the time of calling that method, the application can supply null as the value of the stream parameter. By doing so, the application indicates to the library that it will provide a stream for the entry on a just-in-time basis, at the time one of the ZipFile.Save() methods is called and the data for the various entries are being compressed and written out.

In this case, the application can set the InputStream property, typically within the SaveProgress event (event type: Saving_BeforeWriteEntry) for that entry.

The application will later want to call Close() and Dispose() on that stream. In the SaveProgress event, when the event type is Saving_AfterWriteEntry, the application can do so. This flag indicates that the stream has been provided by the application on a just-in-time basis and that it is the application's responsibility to call Close/Dispose on that stream.

See Also

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)