public class MinLLPWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
omitBOM |
Constructor and Description |
---|
MinLLPWriter() |
MinLLPWriter(OutputStream out) |
MinLLPWriter(OutputStream out,
Charset charset) |
MinLLPWriter(OutputStream out,
Charset charset,
boolean omitBOM) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying stream and any other resources that should be closed.
|
protected Charset |
getCharset() |
protected ca.uhn.hl7v2.llp.MllpEncoder |
initEncoder() |
void |
setOutputStream(OutputStream out)
Sets the underlying output stream to which messages are written.
|
void |
writeMessage(String message)
Sends a complete message to the underlying output stream, delimited
according to the minimal lower layer protocol.
|
void |
writeMessage(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.
|
protected boolean omitBOM
public MinLLPWriter()
public MinLLPWriter(OutputStream out) throws IOException
IOException
public MinLLPWriter(OutputStream out, Charset charset) throws IOException
IOException
public MinLLPWriter(OutputStream out, Charset charset, boolean omitBOM) throws IOException
IOException
protected ca.uhn.hl7v2.llp.MllpEncoder initEncoder()
public void setOutputStream(OutputStream out) throws IOException
setOutputStream
in interface HL7Writer
IOException
public void writeMessage(String message) throws LLPException, IOException
writeMessage
in interface HL7Writer
LLPException
IOException
public void writeMessage(String message, String charset) throws LLPException, IOException
LLPException
IOException
public void close() throws IOException
HL7Writer
close
in interface HL7Writer
IOException
protected Charset getCharset()
Copyright © 2001–2017 University Health Network. All rights reserved.