H
- type of the headerS
- type of the segmentsF
- type of the filepublic interface MessageWriter<H extends Header,S extends Segment<?,?>,F extends NdmConstituent<H,S>>
Modifier and Type | Method and Description |
---|---|
void |
writeFooter(Generator generator)
Write footer for the file.
|
void |
writeHeader(Generator generator,
H header)
Write header for the file.
|
default void |
writeMessage(Generator generator,
F message)
Write one complete message.
|
void |
writeSegment(Generator generator,
S segment)
Write one segment.
|
default void writeMessage(Generator generator, F message) throws IOException
generator
- generator to use for producing outputmessage
- message to writeIOException
- if the stream cannot write to streamvoid writeHeader(Generator generator, H header) throws IOException
generator
- generator to use for producing outputheader
- header to write (creation date and originator will be added if missing)IOException
- if the stream cannot write to streamvoid writeSegment(Generator generator, S segment) throws IOException
generator
- generator to use for producing outputsegment
- segment to writeIOException
- if any buffer writing operations failsvoid writeFooter(Generator generator) throws IOException
generator
- generator to use for producing outputIOException
- if the stream cannot write to streamCopyright © 2002-2023 CS GROUP. All rights reserved.