|
||||||||||
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 java.lang.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(java.io.OutputStream out)
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(java.io.OutputStream out)
Sets the underlying output stream to which messages are written. |
void |
writeMessage(java.lang.String message)
Sends a complete message to the underlying output stream, delimited according to the minimal lower layer protocol. |
void |
writeMessage(java.lang.String message,
java.lang.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 java.lang.String CHARSET_KEY
Constructor Detail |
---|
public MinLLPWriter()
setOutputStream
must be called before attempting to write any messages.
public MinLLPWriter(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void setOutputStream(java.io.OutputStream out) throws java.io.IOException
setOutputStream
in interface HL7Writer
java.io.IOException
public void writeMessage(java.lang.String message) throws LLPException, java.io.IOException
writeMessage
in interface HL7Writer
LLPException
java.io.IOException
public void writeMessage(java.lang.String message, java.lang.String charset) throws LLPException, java.io.IOException
LLPException
java.io.IOException
public void close() throws java.io.IOException
HL7Writer
close
in interface HL7Writer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |