| Constructor and Description |
|---|
LLPOutputStream(OutputStream output)
Constructor.
|
LLPOutputStream(OutputStream output,
Charset charset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this output stream.
|
void |
writeMessage(HL7Message message)
Write a message using HL7 LLP framing and flush the underlying output.
|
public LLPOutputStream(OutputStream output)
Equivalent to: LLPOutputStream(OutputStream, Charset)(output, StandardCharsets.ISO_8859_1).
output - underlying output streamIllegalArgumentException - if output is nullpublic LLPOutputStream(OutputStream output, Charset charset)
output - underlying output streamcharset - character encoding for messagesIllegalArgumentException - if either parameter is nullpublic void writeMessage(HL7Message message) throws IOException
writeMessage in interface HL7Writermessage - message to writeIOException - if an I/O error occurspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.