Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

ArchiveReaderMBS class

Super class: ArchiverMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Archive MBS Compression Plugin 16.2 Yes Yes Yes Yes No
Function: The class to read archive content.
Example:
dim a as new ArchiveReaderMBS
a.SupportFilterAll
a.SupportFormatAll

// open file

dim f as FolderItem = SpecialFolder.Desktop.Child("test.zip")

if not a.OpenFile(f) then
Break // path invalid?
end if

dim e as ArchiveEntryMBS = a.NextHeader
while e <> nil

print e.PathName

e = a.NextHeader
wend
Notes:
Can be used to read zip, tar and other image formats.
Subclass of the ArchiverMBS class.

Feedback, Comments & Corrections

Encryption Status constants.

Constant Value Description
kEncryptionDontKnow -1 If the reader for some other reason (e.g. not enough bytes read) cannot say if there are encrypted entries, kEncryptionDontKnow is returned.
kEncryptionUnsupported -2 In case the archive does not support encryption detection at all kEncryptionUnsupported is returned.

Encryption Capabilities

Constant Value Description
kFormatCapabilitiesEncryptData 1 Reader can detect encrypted data.
kFormatCapabilitiesEncryptMetaData 2 Reader can detect encryptable metadata (pathname, mtime, etc.).
kFormatCapabilitiesNone 0 Current format supports no encryption.

Super class ArchiverMBS

This class has no sub classes.

Some methods using this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS Compression Plugin.


ArchiveEntryMBS   -   ArchiverMBS





Links
MBS Xojo blog