Bzip2 Task

Properties   Config Settings  

The Bzip2 task implements a Bzip2-compliant compressor and decompressor.

Remarks

The Bzip2 task is used when compressing or decompressing data in the form of files.

Bzip2 Assembler Task

The Assembler takes a group of files as input which contains raw data, and generates a Bzip2 archive file as output.

Bzip2 Disassembler Task

The Disassembler takes a compressed file as input, and generates a group of decompressed files as output.

Assembler Property List


The following is the full list of the properties of the assembler task with short descriptions. Click on the links for further details.

AppendAppend files to the specified archive.
ArchiveFileThe name of the Bzip2 archive.
FileDecompressedNameFile name to decompress to, or compress from.
LogFileThe file to write logging information to at runtime.
LogModeWhat information gets logged during component execution.
OtherDefines a set of configuration settings to be used by the task.
RuntimeLicenseSpecifies the component runtime license key.

Disassembler Property List


The following is the full list of the properties of the disassembler task with short descriptions. Click on the links for further details.

ArchiveFileThe name of the Bzip2 archive.
ExtractToPathA base path to decompress to.
FileDecompressedNameFile name to decompress to, or compress from.
LogFileThe file to write logging information to at runtime.
LogModeWhat information gets logged during component execution.
OtherDefines a set of configuration settings to be used by the task.
RuntimeLicenseSpecifies the component runtime license key.

Config Settings


The following is a list of config settings for the task with short descriptions. Click on the links for further details.

MergeExtractedDataIf true, the component will merge concatenated data into one output file when decompressing.

Append Property (Bzip2 Task)

Append files to the specified archive.

Data Type

Boolean

Default Value

false


Remarks

During compression, the file specified by the FileDecompressedName property will be appended to the ArchiveFile.

This property is not available in the Disassembler/Decoder.

ArchiveFile Property (Bzip2 Task)

The name of the Bzip2 archive.

Data Type

String

Default Value

""


Remarks

This property specifies the name of the archive to be read or written. This property is required when compressing or extracting files.

If scanning or extracting, the file specified by ArchiveFile will be opened for read. If the file does not exist, a trappable error will be generated.

During compression, the file named by ArchiveFile will be written; if a file of this name already exists, the file will be overwritten.

The filename may be specified with or without a path. Paths may be relative or absolute, and should be specified in the format native to the host operating system. The filename should be specified with the appropriate extension (such as "zip"); an extension will not automatically be appended by the task.

ExtractToPath Property (Bzip2 Task)

A base path to decompress to.

Data Type

String

Default Value

""


Remarks

Setting this property to a nonempty string will cause all decompressed files to be written to the specified path.

If the specified directory does not exist, it will be created when extraction is done.

ExtractToPath should always be specified in the format native to the host operating system, and with a trailing slash or backslash. If the path is specified otherwise, it will be immediately converted and stored in the converted format. For example, "/temp" would be immediately converted to "\temp\" on a Windows system.

This property is not available in the Assembler/Encoder.

FileDecompressedName Property (Bzip2 Task)

File name to decompress to, or compress from.

Data Type

String

Default Value

""


Remarks

FileDecompressedName contains the name of the file in the archive, as stored on the file system, outside the archive.

When compressing a file, this property should be specified with a path, if necessary, to allow the file to be found by the task. If the file cannot be found when compression begins, a trappable error will be generated, and the archive will not be correctly written.

Paths on the local file system should be specified in the format native to the host operating system. They may also be specified in standard (UNIX) format, in which case they will be immediately converted.

LogFile Property (Bzip2 Task)

The file to write logging information to at runtime.

Data Type

String

Default Value

""


Remarks

To write logging information to a file instead of using the task's logging API, set this property to a valid file on disk.

When set, any logging information is appended to the specified file and not written to the task's logging API.

LogMode Property (Bzip2 Task)

What information gets logged during component execution.

Data Type

Enumeration

Possible Values

Verbose (0)
Info (1)
Warning (2)
Error (3)
Fatal (4)


Default Value

3


Remarks

This property controls what information the task logs. The possible values have the following affect on the task's behavior:

VerboseThe task will report all information regarding the transport.
InfoThe task will report all major operations, as well as all warnings and errors.
WarningThe task will report any conditions that could result in unpredictable behavior as well as errors.
ErrorThe task will report all errors that prevent normal operations from completing.
FatalThe task will report only serious errors that cause the task to completely stop functioning.

Other Property (Bzip2 Task)

Defines a set of configuration settings to be used by the task.

Data Type

String

Default Value

""


Remarks

The task accepts one or more configuration settings. These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the task, access to these internal properties is provided through the Other property.

The Other property may be set to one or more configuration settings (name/value pairs). Set one setting per line. For example: configname1=value1 configname2=value2

RuntimeLicense Property (Bzip2 Task)

Specifies the component runtime license key.

Data Type

String

Default Value

""


Remarks

You can use the RuntimeLicense property to set the runtime key for the task license.

Config Settings (Bzip2 Task)

The task accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the task, access to these internal properties is provided through the Other property.

Bzip2 Config Settings

MergeExtractedData:   If true, the component will merge concatenated data into one output file when decompressing.

While the bzip2 file format is typically used only to archive a single file, multiple files can be concatenated into one bzip2 file. This configuration setting can be used to into one output file when decompressing.