ByteInserterPostExecuter

Configuration file

sample_byte_insert_postexecuter.properties

Class name

com.ebd.hub.datawizard.postexec.ByteInserterPostExecuter

Description


This postexecuter allows you to insert a byte sequence at the beginning or the end of a file. This can, for example, be used to insert the byte order mark (BOM) at the beginning of an XML file. The byte sequence is expected to be a contiguous sequence of hexadecimal digits (0-9 and A-F). The number of digits must be even because each byte is described by two digits. The digits A to F are allowed in uppercase or lowercase letters. The prefix 0x is allowed but not required.

The path to a properties file for the configuration of the postexecuter has to be set in the field Config file.

Parameters


Parameter

Description

bytes

Byte sequence that shall be inserted. The number of hexadecimal digits has to be even. Default: EFBBBF

append

(optional) If true, the byte sequence is inserted at the end of the file. Default: false

Example


sample_byte_insert_postexecuter.properties
#
bytes=0a
#append=true