BZIP2 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


BZIP2 (.bz2) File Format

BZIP2 file format

 

Description

Notes

Examples

Description

• 

BZIP2 is a format for data compression which uses the Burrows-Wheeler compression algorithm.

• 

The Import command can encode and decode data in this format, and the ArrayTools[Compress] and ArrayTools[Uncompress] commands also support it.

Notes

• 

Content-Type: application/zip

Examples

Read the contents of a compressed file.

> 

file≔FileTools:-JoinPath⁡example/newton.bz2,base=datadir

C:\Program Files\Maple 2018\data\example\newton.bz2

(1)
> 

data≔Import⁡file

data≔73102327332104971181013211510110111032102117114116104101114443210511632105115329812132115116971101001051101033211111032116104101321151041111171081001011141153211110232103105971101161154610

(2)
> 

StringTools:-FromByteArray⁡data

If I have seen further, it is by standing on the shoulders of giants.

(3)

See Also

FileTools[Compressed]

Formats