Platforms to show: All Mac Windows Linux Cross-Platform

BZip2FileMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Compression MBS Compression Plugin 9.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A class to read and write bzip2 byte streams.
Example
// write a text into a bzip2 compressed file and read it back
Var file As FolderItem = SpecialFolder.Desktop.Child("test.txt.bz2")

Var w As New BZip2FileMBS
If w.Open(file, "wb") Then
w.Write "Hello World. " + "This text is compressed with bzip2."
w.Close
End If

Var r As New BZip2FileMBS
If r.Open(file, "rb") Then
Var text As String = r.Read(1000)
r.Close
MessageBox text
End If

A .bz2 file is just the content of the original file compressed. No header.

This class has no subclasses.


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


BZip2DecompressMBS   -   CADisplayLinkMBS


The biggest plugin in space...