ca.uhn.hl7v2.llp
Class ExtendedMinLowerLayerProtocol
java.lang.Object
ca.uhn.hl7v2.llp.LowerLayerProtocol
ca.uhn.hl7v2.llp.ExtendedMinLowerLayerProtocol
public class ExtendedMinLowerLayerProtocol
- extends LowerLayerProtocol
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedMinLowerLayerProtocol
public ExtendedMinLowerLayerProtocol()
getReader
public HL7Reader getReader(InputStream in)
throws LLPException
- Returns an HL7Reader that implements message reading according to
this protocol.
- Specified by:
getReader in class LowerLayerProtocol
- Throws:
LLPException
getWriter
public HL7Writer getWriter(OutputStream theOut)
throws LLPException
- Returns an HL7Writer that implements message writing according to
this protocol.
- Specified by:
getWriter in class LowerLayerProtocol
- Throws:
LLPException
Copyright © 2001-2012 University Health Network. All Rights Reserved.