next - previous - toc

3.1. workbench.xml

Transformers and Calculators

Transformer and Calculator are essentially the same thing. The only difference is the first one pastes the result over the current selection whereas the second one pastes the result on the DataClipboard. The following explanation only deals with Transformers but pertains to Calculators as well.

Each line in the workbench.xml files corresponds to one entry in the DataWorkshop Transformer menu. The general format is:

< transformer class="type (see below)" majorversion= "0" minorversion="8" name="Name in Menu">
<parametername>parametervalue</parametername>
</transformer>
Below is a listing of some DataTransformer types and their parameters. Complex Parameters like Data are explained in the section Complex Types.

CRC-32

Calcutes the CRC-32 Checksum on the data.

Convert

Convert the data to a different format. The data is converted to a String using the encoder. Then this String is converted back into data using the decoder.
ParameterTypeRangeExplanation
encoder DataConverter -
decoder DataConverter -

Fill

Fills the data with a pattern.
ParameterTypeRangeExplanation
pattern Data - The pattern used for filling

Negate

Does a 2-complement on the data.

Not

Does a bitwise not on the data.

SwapByteOrdering

Changes the byte order. Byte 0 is exchanged with byte n, byte 1 is exchanged with byte n - 1, and so on.
ParameterTypeRangeExplanation
swappedBytes Integer 0 - n the number of bytes swapped

next - previous - toc