public final class HL7Parser
extends java.lang.Object
Message
.Constructor and Description |
---|
HL7Parser()
Constuct an HL7Parser with default parameters.
|
HL7Parser(HL7Params params)
Constuct an HL7Parser with the given parameters.
|
HL7Parser(java.lang.String hl7msg)
Constuct an HL7Parser with parameters derived from the given HL7 message.
|
Modifier and Type | Method and Description |
---|---|
HL7Params |
getParams()
Return the parameters being used by this HL7Parser
|
Message |
parse(java.nio.file.Path p)
Parse HL7v2 text from a Path
|
Message |
parse(java.io.Reader r)
Parse HL7v2 text from a Reader
|
Message |
parse(java.lang.String hl7msg)
Parse text as a single HL7 message.
|
void |
setParams(HL7Params params)
Set the parameters to be used by this HL7Parser
|
static java.lang.String |
slurpReaderText(java.io.Reader r,
int bufferSize)
Read all characters available from a Reader and return them as a string.
|
public HL7Parser()
public HL7Parser(HL7Params params)
public HL7Parser(java.lang.String hl7msg)
public HL7Params getParams()
public void setParams(HL7Params params)
public Message parse(java.lang.String hl7msg)
hl7msg
- HL7v2 text to parsepublic Message parse(java.io.Reader r)
public Message parse(java.nio.file.Path p) throws java.io.IOException
java.io.IOException
public static java.lang.String slurpReaderText(java.io.Reader r, int bufferSize)
r
- Reader from which to read charactersbufferSize
- buffer size for our BufferedReader