GzipDecoderPreParser

Group

Preparsers

Class Name

com.ebd.hub.datawizard.parser.stream.GzipDecoderPreParser

Function

This preparser unpacks gzip files.

Configuration File

None

Description

This preparser unpacks gzip files. It does not recognise encodings, instead, the encoding of the profile will be used. It uses a configuration string, which should be set in the field next to the name of the preparser.

The GzipDecoderPreParser is a stream preparser, which means it does not have a noteworthy memory consumption and is able to process data of any size. The default buffer size is 512 bytes. It can be increased by defining a buffer size (unit is byte) in the configuration string. A buffer size smaller than 512 will lead to an error. The increase of the buffer size may reduce the run time for large input files.

If the parameter string includes the text ignore and the input file is not gzip encoded, the gzip decoding will be skipped. All components of the parameter string are optional, but should they both occur, they have to be separated by a comma, semicolon, whitespace, or tab.

Parameter string:

[<buffer size in bytes>][<separator>][ignore]

Example String

2048;ignore

This string defines a 2 Kbyte buffer in ignore mode.