Package ca.uhn.hl7v2.llp
Class ExtendedMinLowerLayerProtocol
java.lang.Object
ca.uhn.hl7v2.llp.LowerLayerProtocol
ca.uhn.hl7v2.llp.ExtendedMinLowerLayerProtocol
Deprecated.
Minimal Lower Layer Protocol implementation which is detects the text character set being used by reading in the MSH-18 value. For example, if MSH-18 contains "ISO-8859-1", the message is parsed using 8859/1 charset encoding. If MSH-18 contains "UNICODE UTF-8", the message is parsed using UTF-8 charset encoding.
Please note the following warnings regarding the use of this class:
- At present, this class supports only the ER7 (pipe and hat) message style. Using it to receive an XML style message will result in undefined behaviour.
- This class attempts to detect UTF-16 encoding by searching for a byte order mark at the beginning of the string. While the BOM is optional in UTF-16 encoding, this class will not correctly detect UTF-16 if it is missing. Both big-endian and little-endian byte order is supported for UTF-16.
- Author:
- Jens Kristian Villadsen from Cetrea A/S
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.llp.LowerLayerProtocol
charset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReader(InputStream in) Deprecated.Returns an HL7Reader that implements message reading according to this protocol.getWriter(OutputStream theOut) Deprecated.Returns an HL7Writer that implements message writing according to this protocol.Methods inherited from class ca.uhn.hl7v2.llp.LowerLayerProtocol
logCharacterReceived, makeLLP, makeLLP, setCharset, setCharset
-
Constructor Details
-
ExtendedMinLowerLayerProtocol
public ExtendedMinLowerLayerProtocol()Deprecated.
-
-
Method Details
-
getReader
Deprecated.Returns an HL7Reader that implements message reading according to this protocol.- Specified by:
getReaderin classLowerLayerProtocol- Throws:
LLPException
-
getWriter
Deprecated.Returns an HL7Writer that implements message writing according to this protocol.- Specified by:
getWriterin classLowerLayerProtocol- Throws:
LLPException
-
MinLowerLayerProtocol(boolean)and passtrueas argument