IPWorks ZIP 2020 Python Edition

Questions / Feedback?

jar_data Property

(Decompression only) The jar file contents as a byte array.

Syntax

def set_jar_data(value: bytes) -> None: ...

jar_data = property(None, set_jar_data)

Default Value

""

Remarks

Normally you should set archive_file before invoking scan or extract. If you prefer to read the jar file from memory you may set jar_data instead. jar_data should be set to the entire contents of the jar file; this will allow you to read from the archive without writing any temporary files to disk.

If you would like to extract data from the archive without ever writing to disk you should also set WriteToProgressEvent to true, and after invoking scan, you should set the value of file_decompressed_name for each file in the files collection to an empty string. Then, when you invoke extract (or extract_all) the data will be provided in the on_progress event.

This property is write-only. Note that modifying a jar file stored in jar_data is not supported, so append, delete, etc., will throw exceptions.

This property is write-only.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks ZIP 2020 Python Edition - Version 20.0 [Build 7720]