public class MinLLPWriter extends Object implements HL7Writer
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET_KEY |
| Constructor and Description |
|---|
MinLLPWriter()
Creates a MinLLPWriter with no output stream specified -
setOutputStream
must be called before attempting to write any messages. |
MinLLPWriter(OutputStream out)
Creates a MinLLPWriter, specifying the underlying output stream.
|
MinLLPWriter(OutputStream out,
Charset theCharset)
Creates a MinLLPWriter, specifying the underlying output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying stream and any other resources that should be closed.
|
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.
|
public static final String CHARSET_KEY
public MinLLPWriter()
setOutputStream
must be called before attempting to write any messages.public MinLLPWriter(OutputStream out) throws IOException
IOExceptionpublic MinLLPWriter(OutputStream out, Charset theCharset) throws IOException
IOExceptionpublic 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 HL7WriterIOExceptionCopyright © 2001-2013 University Health Network. All Rights Reserved.