Package ca.uhn.hl7v2.llp
Interface HL7Writer
- All Known Implementing Classes:
ExtendedMinLLPWriter,MinLLPWriter
public interface HL7Writer
An HL7Writer implements writing to an output stream using a particular lower
layer protocol.
- Author:
- Bryan Tripp
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the underlying stream and any other resources that should be closed.voidSets the OutputStream to which to write messages.voidwriteMessage(String message) Sends a complete message to the underlying output stream using the lower layer protocol implemented by this HL7Writer.
-
Method Details
-
writeMessage
Sends a complete message to the underlying output stream using the lower layer protocol implemented by this HL7Writer.- Throws:
LLPExceptionIOException
-
setOutputStream
Sets the OutputStream to which to write messages. The OutputStream must be set before any calls to().- Throws:
IOException
-
close
Closes the underlying stream and any other resources that should be closed.- Throws:
IOException
-