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
IOExceptionpublic MinLLPWriter(OutputStream out, Charset charset) throws IOException
IOExceptionpublic MinLLPWriter(OutputStream out, Charset charset, boolean omitBOM) throws IOException
IOExceptionprotected ca.uhn.hl7v2.llp.MllpEncoder initEncoder()
public void setOutputStream(OutputStream out) throws IOException
setOutputStream in interface HL7WriterIOExceptionpublic void writeMessage(String message) throws LLPException, IOException
writeMessage in interface HL7WriterLLPExceptionIOExceptionpublic void writeMessage(String message, String charset) throws LLPException, IOException
LLPExceptionIOExceptionpublic void close() throws IOException
HL7Writerclose in interface HL7WriterIOExceptionprotected Charset getCharset()
Copyright © 2001–2017 University Health Network. All rights reserved.