public class MinLLPReader extends Object implements HL7Reader
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET_KEY
System property: If a value is set for this property, the value
is interpreted as a character set, and this characterset is
used.
|
static char |
END_MESSAGE
Character indicating the termination of an HL7 message
|
static char |
LAST_CHARACTER
The final character of a message: a carriage return.
|
static char |
START_MESSAGE
character indicating the start of an HL7 message
|
| Constructor and Description |
|---|
MinLLPReader()
Creates a MinLLPReader with no setup - setInputStream must be set later.
|
MinLLPReader(InputStream in)
Creates a MinLLPReader which reads from the given InputStream.
|
MinLLPReader(InputStream in,
Charset theCharset)
Creates a MinLLPReader which reads from the given InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying BufferedReader.
|
String |
getMessage()
Reads an HL7 encoded message from this Reader's InputStream.
|
static void |
main(String[] args)
Test driver for the program.
|
void |
setInputStream(InputStream in)
Sets the InputStream from which to read messages.
|
public static final String CHARSET_KEY
System property: If a value is set for this property, the value is interpreted as a character set, and this characterset is used. A possible example is "UTF-8" if you are receiving messages from a system that transmits in UTF-8.
If the system property is set to a value of "default" (in other words, a string containing only the word default), then the platform default is used.
If the system property is not set, US-ASCII encoding is used.
public static final char END_MESSAGE
public static final char START_MESSAGE
public static final char LAST_CHARACTER
public MinLLPReader()
public MinLLPReader(InputStream in) throws IOException
IOExceptionpublic MinLLPReader(InputStream in, Charset theCharset) throws IOException
IOExceptionpublic void setInputStream(InputStream in) throws IOException
getMessage().setInputStream in interface HL7ReaderIOExceptionpublic String getMessage() throws LLPException, IOException
getMessage in interface HL7ReaderLLPExceptionIOExceptionpublic static void main(String[] args)
public void close() throws IOException
close in interface HL7ReaderIOExceptionCopyright © 2001-2012 University Health Network. All Rights Reserved.