Skip to main content
Skip table of contents

Stream Splitter

This adapter splits a data stream into parts whose length can be defined in byte. This adapter outputs the data stream parts with the specified length successively or outputs the parts in ascending or descending order.

Properties

Operation

Defines the operation executed by the adapter

Possible values:

  • Cut: Split data stream and output each part as data stream

  • Clear: Reset the counter to the initial value and do not output any part

Parameters

Adapter

Main adapter class (do not change!)

Possible values: de.softproject.integration.adapter. streamsplitter.StreamSplitter: Main class (Default)

BlockSize

Block size in bytes (the last part of the data stream may be smaller)

Possible values: Any integer number

SegmentCount

Manipulate the adapter result status (useful in combination with a Condition component, if only a certain part of the binary data stream, e.g. the last part, has to be processed)

Possible values:

  • none: Do not manipulate the adapter status; Adapter gets the status 1, if a part has been output. (default)

  • increment: Output the current counter value as status, beginning with 1

  • decrement: Output the current counter value as status, beginning with the highest number and decrement the counter value by 1

Status values

-1 (error)

An error occurred during the adapter's execution. You find more detailed information in the server log.

0 (successful)

The adapter was executed successfully, but did not output any data because there were no more parts available (operation Cut) or because the adapter did not process the data but only reset the iterator (operation Clear).

1 (successful)

The adapter was executed successfully and output the current part of the binary data stream. If the parameter SegmentCount has been set to increment, the adapter has output the first part of the binary data stream.

2 ... n

Only if the parameter SegmentCount has been set to increment or decrement: The adapter has output the second or the n-th part of the binary data stream.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.