com.ibm.websphere.batch.devframework.datastreams.patternadapter
Interface ByteWriterPattern
- public interface ByteWriterPattern
Method Summary
Modifier and Type | Method and Description |
---|---|
|
initialize(java.util.Properties props)
Invoked during the step setup phase
|
|
writeHeader(java.io.BufferedOutputStream out)
Write header information if any
|
|
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.
|
|
writeRecord(java.io.BufferedOutputStream out,java.lang.Object record)
Writes the given object onto the given outputstream.
|
Method Detail
initialize
- void initialize(java.util.Properties props)
Invoked during the step setup phase
Parameters:
props
- writeRecord
- void writeRecord(java.io.BufferedOutputStream out,
- java.lang.Object record)
- throws java.io.IOException
Writes the given object onto the given outputstream. Any processing
that needs to be done before writing can be added here
Parameters:
out
- record
- Throws:
java.io.IOException
writeHeader
- void writeHeader(java.io.BufferedOutputStream out)
- throws java.io.IOException
Write header information if any
Parameters:
out
- Throws:
java.io.IOException
writeHeader
- void writeHeader(java.io.BufferedOutputStream out,
- java.lang.Object header)
- throws java.io.IOException
This method can be optionally called during process step to explicity
initialize and write the header.
Parameters:
header
- Throws:
java.io.IOException