public interface ByteWriterPattern
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.util.Properties props)
Invoked during the step setup phase
|
void |
writeHeader(java.io.BufferedOutputStream out)
Write header information if any
|
void |
writeHeader(java.io.BufferedOutputStream out,
java.lang.Object header)
This method can be optionally called during process step to explicity
initialize and write the header.
|
void |
writeRecord(java.io.BufferedOutputStream out,
java.lang.Object record)
Writes the given object onto the given outputstream.
|
void initialize(java.util.Properties props)
props
- void writeRecord(java.io.BufferedOutputStream out, java.lang.Object record) throws java.io.IOException
out
- record
- java.io.IOException
void writeHeader(java.io.BufferedOutputStream out) throws java.io.IOException
out
- java.io.IOException
void writeHeader(java.io.BufferedOutputStream out, java.lang.Object header) throws java.io.IOException
header
- java.io.IOException