| Modifier and Type | Field and Description |
|---|---|
protected BufferedWriter |
writer |
| Constructor and Description |
|---|
HL7FileWriter(OutputStream out)
Convenience constructor.
|
HL7FileWriter(Writer out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying writer.
|
void |
writeMessage(HL7Message message)
Write the given message to the underlying output (and then flush it).
|
protected final BufferedWriter writer
public HL7FileWriter(Writer out)
out - underlying writerpublic HL7FileWriter(OutputStream out)
HL7FileWriter(new OutputStreamWriter(out, StandardCharsets.ISO_8859_1))
out - underlying input streampublic void writeMessage(HL7Message message) throws IOException
writeMessage in interface HL7Writermessage - message to writeIOException - if an I/O error occurspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.