com.ibm.websphere.batch.devframework.datastreams.patternadapter

Interface ByteWriterPattern


  1. public interface ByteWriterPattern

Method Summary

Modifier and Type Method and Description
  1. void
initialize(java.util.Properties props)
Invoked during the step setup phase
  1. void
writeHeader(java.io.BufferedOutputStream out)
Write header information if any
  1. 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.
  1. void
writeRecord(java.io.BufferedOutputStream out,java.lang.Object record)
Writes the given object onto the given outputstream.

Method Detail

initialize

  1. void initialize(java.util.Properties props)
Invoked during the step setup phase
Parameters:
props -

writeRecord

  1. void writeRecord(java.io.BufferedOutputStream out,
  2. java.lang.Object record)
  3. 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

  1. void writeHeader(java.io.BufferedOutputStream out)
  2. throws java.io.IOException
Write header information if any
Parameters:
out -
Throws:
java.io.IOException

writeHeader

  1. void writeHeader(java.io.BufferedOutputStream out,
  2. java.lang.Object header)
  3. 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