|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.llp.MinLLPReader
public class MinLLPReader
Title: HL7Reader Description: A buffered reader specifically designed for use in reading HL7 ASCII strings. This class assumes that the minimal lower layer protocol is being used. Copyright: Copyright (c) 2001 Company: University Health Network
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| 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
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
| Constructor Detail |
|---|
public MinLLPReader()
public MinLLPReader(InputStream in)
throws IOException
IOException
public MinLLPReader(InputStream in,
Charset theCharset)
throws IOException
IOException| Method Detail |
|---|
public void setInputStream(InputStream in)
throws IOException
getMessage().
setInputStream in interface HL7ReaderIOException
public String getMessage()
throws LLPException,
IOException
getMessage in interface HL7ReaderLLPException
IOExceptionpublic static void main(String[] args)
public void close()
throws IOException
close in interface HL7ReaderIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||