Platforms to show: All Mac Windows Linux Cross-Platform
UnZipMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Compression | MBS Compression Plugin | 8.6 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This is a simple class which uses zlib and has some limitations:
- only deflate as compression method
- only one date per file is preserved
- no resource forks on Mac OS
- no text encoding handling
- no Apple or Microsoft extensions for special file flags or permissions.
See also ArchiveReaderMBS and ArchiveWriterMBS classes for more features and compression formats.
- 4 properties
- property Handle as Integer
- property Lasterror as Integer
- property FilePosition as UnZipFilePositionMBS
- property Offset as UInt64
- 24 methods
- method Close
- method CloseCurrentFile
- method Comment as string
- method CommentSize as UInt32
- method Constructor(data as memoryblock)
- method Constructor(data as string)
- method Constructor(file as folderitem)
- method Constructor(file as folderitem, Offset as Integer)
- method Count as UInt64
- method EOF as Integer
- method ExtractFiles(DestFolder as FolderItem, ExtractWithoutPath as boolean = false, Overwrite as Boolean = false, Password as String = "", byref ErrorMessage as String) as boolean
- method FileInfo as UnZipFileInfoMBS
- method FileName as string
- method GetLocalExtrafield as string
- method GoToFirstFile
- method GoToNextFile
- method LocateFile(filename as string, CaseSensitive as Integer)
- method OpenCurrentFile
- method OpenCurrentFile(byref method as Integer, byref level as Integer, raw as boolean)
- method OpenCurrentFile(byref method as Integer, byref level as Integer, raw as boolean, password as string)
- method OpenCurrentFile(password as string)
- method Position as UInt64
- method Position2 as UInt64
- method ReadCurrentFile(size as Integer) as string
- shared method CompareFileNames(filename1 as string, filename2 as string, CaseSensitive as Integer) as Integer
- 17 constants
Constants
Constant | Value | Description |
---|---|---|
CompressionBestCompression | 9 | One of the compression level constants. |
CompressionBestSpeed | 1 | One of the compression level constants. |
CompressionDefault | -1 | One of the compression level constants. |
CompressionNo | 0 | One of the compression level constants. |
MethodDeflated | 8 | One of the compression methods. |
MethodNone | 0 | One of the compression methods. |
StrategyDefault | 0 | One of the strategy constants. |
StrategyFiltered | 1 | One of the strategy constants. |
StrategyFixed | 4 | One of the strategy constants. |
StrategyHuffmanOnly | 2 | One of the strategy constants. |
StrategyRLE | 3 | One of the strategy constants. |
UnzipBadUnZipFile | -103 | One of the error constants. |
UnzipCRCError | -105 | One of the error constants. |
UnzipEndOfListError | -100 | One of the error constants. |
UnzipInternalError | -104 | One of the error constants. |
UnzipOk | 0 | One of the error constants. |
UnzipParameterError | -102 | One of the error constants. |
This class has no sub classes.
Some examples using this class:
- /Compression/Old ZipMBS class/ExtractFiles test
- /Compression/Old ZipMBS class/test huge files with big archive
- /Compression/Old ZipMBS class/test huge files with small archive
- /Compression/Old ZipMBS class/unzip
- /Compression/Old ZipMBS class/unzip with encryption
- /Compression/Old ZipMBS class/unzip with folders and encryption
- /Compression/Old ZipMBS class/unzip with memory
- /Compression/Old ZipMBS class/unzip with offset
- /Compression/Old ZipMBS class/unzip with string
- /Main/Obfuscate/Obfuscate Xojo Plugins
Blog Entries
- MBS Xojo Plugins, version 20.6pr1
- MBS Xojo plug-ins in version 16.0
- MBS Xojo / Real Studio Plugins, version 16.0pr7
- MBS Plugins 11.1 Release notes
- MBS Real Studio Plugins, version 11.1pr11
- MBS Real Studio Plugins, version 11.1pr10
- MBS REALbasic Plugins, version 11.0pr13
- MBS REALbasic Plugins, version 10.5pr2
- MonkeyBread Software Releases the MBS REALbasic plug-ins 8.6
Xojo Developer Magazine
- 9.5, page 11: News
- 9.1, page 25: Optimizing Client-Server Communications, Using ZIP-archives and AES encryption to improve security and performance by Mattias Sandström
- 9.1, page 23: Optimizing Client-Server Communications, Using ZIP-archives and AES encryption to improve security and performance by Mattias Sandström
Release notes
- Version 21.0
- Fixed problem with ReadCurrentFile function in UnZipMBS class not setting LastError property correctly.
The items on this page are in the following plugins: MBS Compression Plugin.
UnZipFilePositionMBS - UpDownArrows
