public abstract class LowerLayerProtocol extends Object
logCharacterReceived()
when a character is read from a remote system.
This method may or may not log receipt, as configured (see docs for this method).Constructor and Description |
---|
LowerLayerProtocol() |
Modifier and Type | Method and Description |
---|---|
abstract HL7Reader |
getReader(InputStream in)
Returns an HL7Reader that implements message reading according to
this protocol.
|
abstract HL7Writer |
getWriter(OutputStream out)
Returns an HL7Writer that implements message writing according to
this protocol.
|
static void |
logCharacterReceived(int c)
Logs the fact that a character has been received, if configured to do so.
|
static LowerLayerProtocol |
makeLLP()
Deprecated.
as there is now the choice between
MinLowerLayerProtocol
and ExtendedMinLowerLayerProtocol . |
static LowerLayerProtocol |
makeLLP(boolean respectMSH18)
Returns a particular implementation of LowerLayerProtocol
|
void |
setCharset(Charset theCharset)
Provides a charset to use for character encoding
|
void |
setCharset(String charsetName)
Provides a charset to use for character encoding
|
public LowerLayerProtocol()
public static LowerLayerProtocol makeLLP()
MinLowerLayerProtocol
and ExtendedMinLowerLayerProtocol
.public static LowerLayerProtocol makeLLP(boolean respectMSH18)
respectMSH18
- public abstract HL7Reader getReader(InputStream in) throws LLPException
LLPException
public abstract HL7Writer getWriter(OutputStream out) throws LLPException
LLPException
public static void logCharacterReceived(int c)
Logs the fact that a character has been received, if configured to do so.
This logging is enabled by configuring the underlying log system to allow
the logger named "ca.uhn.hl7v2.llp.LowerLayerProtocol
" to log
events at a level of "trace".
public void setCharset(Charset theCharset)
theCharset
- The charset to usepublic void setCharset(String charsetName)
charsetName
- The name of the charset to useCopyright © 2001–2017 University Health Network. All rights reserved.