Overview - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Overview of the FileTools:-Compressed Subpackage

 

Description

Details on Compression Levels and gzip Options

List of FileTools:-Compressed Subpackage Commands

Compatibility

Description

• 

The FileTools:-Compressed subpackage is a collection of commands for the manipulation of compressed files. These commands support creating, reading from, and writing to compressed files in both the gzip and zip formats.

• 

The data being read or written can consist of strings, binary data (rtables), integers, or floating-point numbers.

• 

In general, a file with a ".zip" extension or a file specification using the notation "subfile" in "zipfile" to denote the zipfile and in-zipfile will be interpreted as a zip archive, while any other extension will be interpreted as gzip format. The Open command accepts a format option to override the examining of the file extension to determine the file format.

Details on Compression Levels and gzip Options

• 

Many of these commands accept an option gzipopts. Acceptable values for this option are strings of the form [0-9][fhR]. A digit, if given, sets the compression level. A low value (1) means high speed. A high value (9) means high compression. A level of 0 means no compression. A single letter, if given, sets the compression strategy: the letter f corresponds to filtered data, the letter h corresponds to Huffman-only compression, and the letter R corresponds to run-length encoding. See the zlib Manual for more details.

• 

Zip files also accept the compression level as given by gzipopts, but only support the default compression strategy.

List of FileTools:-Compressed Subpackage Commands

• 

The following is a list of available commands.

Close

Contents

Extract

Open

Read

ReadFile

ReadWriteFile

Write

WriteFile

 

 

 

Compatibility

• 

The FileTools:-Compressed package was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

• 

The zip option was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

ArrayTools:-Compress

FileTools

FileTools:-Binary

Formats,GZIP

Formats,ZIP

zlib Manual

 


Download Help Document