Package ca.uhn.hl7v2.llp
Class ExtendedMinLLPWriter
java.lang.Object
ca.uhn.hl7v2.llp.ExtendedMinLLPWriter
- All Implemented Interfaces:
HL7Writer
ExtendedMinLLPWriter uses a message-dependent encoder to obey a
potentially populated field MSH-18.
- Author:
- Christian Ohr
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExtendedMinLLPWriter(OutputStream out, Charset charset) ExtendedMinLLPWriter(OutputStream out, Charset charset, boolean omitBOM) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the underlying stream and any other resources that should be closed.protected Charsetprotected ca.uhn.hl7v2.llp.ExtendedMllpEncodervoidSets the underlying output stream to which messages are written.voidwriteMessage(String message) Sends a complete message to the underlying output stream, delimited according to the minimal lower layer protocol.voidwriteMessage(String message, String charset) Sends a complete message to the underlying output stream, delimited according to the minimal lower layer protocol, using the specified character set.
-
Field Details
-
omitBOM
protected boolean omitBOM
-
-
Constructor Details
-
ExtendedMinLLPWriter
public ExtendedMinLLPWriter() -
ExtendedMinLLPWriter
- Throws:
IOException
-
ExtendedMinLLPWriter
- Throws:
IOException
-
ExtendedMinLLPWriter
- Throws:
IOException
-
-
Method Details
-
initEncoder
-
setOutputStream
Sets the underlying output stream to which messages are written.- Specified by:
setOutputStreamin interfaceHL7Writer
-
writeMessage
Sends a complete message to the underlying output stream, delimited according to the minimal lower layer protocol.- Specified by:
writeMessagein interfaceHL7Writer- Throws:
LLPExceptionIOException
-
writeMessage
Sends a complete message to the underlying output stream, delimited according to the minimal lower layer protocol, using the specified character set.- Throws:
IOException
-
close
Description copied from interface:HL7WriterCloses the underlying stream and any other resources that should be closed.- Specified by:
closein interfaceHL7Writer- Throws:
IOException
-
getCharset
-