|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.llp.MinLLPWriter
public class MinLLPWriter
Title: MinLLPWriter Description: Writes HL7 messages to an OutputStream. The character set defaults to US-ASCII. It can be chaged by setting the system property ca.uhn.hl7v2.llp.charset to another value that is the name of a valid java.nio.charset.Charset. If this property is set to "default", then the system default is used. Copyright: Copyright (c) 2001 Company: University Health Network
| Field Summary | |
|---|---|
static String |
CHARSET_KEY
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CHARSET_KEY
MinLLPReader.CHARSET_KEY,
Constant Field Values| Constructor Detail |
|---|
public MinLLPWriter()
setOutputStream
must be called before attempting to write any messages.
public MinLLPWriter(OutputStream out)
throws IOException
IOException
public MinLLPWriter(OutputStream out,
Charset theCharset)
throws IOException
IOException| Method Detail |
|---|
public void setOutputStream(OutputStream out)
throws IOException
setOutputStream in interface HL7WriterIOException
public void writeMessage(String message)
throws LLPException,
IOException
writeMessage in interface HL7WriterLLPException
IOException
public void writeMessage(String message,
String charset)
throws LLPException,
IOException
LLPException
IOException
public void close()
throws IOException
HL7Writer
close in interface HL7WriterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||