Syntax:
com.ibi.agents.CCharFilter
iIT Service Object:
misc: C Char Filter
Description:
Some input documents contain control characters such as tabs or bells. This service replaces or removes such characters.
Parameters:
Parameter |
Description |
---|---|
Linefeed * |
Determines whether to remove linefeed characters (\r). Select true (default) or false. |
Carriage Return * |
Determines whether to remove carriage returns (\n). Select true (default) or false. |
Tab * |
Determines whether to remove tab (\t) characters. Select true (default) or false. |
End of File * |
Determines whether to remove DOS end of file (0x1a) characters. Select true (default) or false. |
Bell * |
Determines whether to remove bell (0x07) characters. Select true (default) or false. |
Control |
|
Replace With * |
Replace removed characters with this character. Select none (default), space, or period (.) from the drop-down list. |
Edges:
The following table lists the available line edges for the C Char Filter Service (com.ibi.agents.CCharFilter).
Edge |
Description |
---|---|
OnError |
Error |
OnSuccess |
Success |
OnFailure |
Failure |
OnCustom |
|
Example:
If you need to replace a new line character in an incoming document with a period (.), this service needs to be configured with default parameter values, except for the Replace With parameter value, which must be set to period (.). The result of passing the incoming document with a new line character inside the <Test> tags is:
<?xml version="1.0" encoding="UTF-8" ?> <Test>.</Test>