HL7 MLLP codec.
This codec supports encoding/decoding the HL7 MLLP protocol. It will use the default markers for start and end combination:
- 0x0b (11 decimal) = start marker
- 0x0d (13 decimal = the \r char) = segment terminators
- 0x1c (28 decimal) = end 1 marker
- 0x0d (13 decimal) = end 2 marker
The decoder is used for decoding from MLLP (bytes) to String. The String will not contain any of the start and end markers.
The encoder is used for encoding from String to MLLP (bytes). The String should
not contain any of the start and end markers, the enoder will add these, and stream the string as bytes. Also the enocder will convert any
\n (line breaks) as segment terminators to
\r.
This codes supports charset encoding/decoding between bytes and String. The JVM platform default charset is used, but the charset can be configued on this codec using the setter method. The decoder will use the JVM platform default charset for decoding, but the charset can be configued on the this codec.