Platforms to show: All Mac Windows Linux Cross-Platform

ArchiverMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The abstract super class for common archiver methods.
Example
// list the files in a zip or tar archive with the libarchive based classes
// ArchiverMBS is the base class of ArchiveReaderMBS and ArchiveWriterMBS.
Var reader As New ArchiveReaderMBS
reader.SupportFilterAll
reader.SupportFormatAll
If Not reader.OpenFile(SpecialFolder.Desktop.Child("test.zip")) Then
MessageBox "Can't open: " + reader.ErrorString
Return
End If

Var lines() As String
Do
Var entry As ArchiveEntryMBS = reader.NextHeader
If entry = Nil Then Exit
lines.Add entry.PathName + " (" + entry.Size.ToString + " bytes)"
reader.Skip
Loop
lines.Add "Format: " + reader.FormatName + ", library " + ArchiverMBS.LibVersionString
MessageBox String.FromArray(lines, EndOfLine)

Currently we build this library without lzma and lz4 support. That could be changed if needed.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Sub classes:

Blog Entries

Release notes

Some methods using this class:

Some examples using this class:

Some related classes:


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


ArchiveReaderMBS   -   ArchiveWriteDiskMBS


The biggest plugin in space...