com.legstar.coxb
Interface ICobolBindingVisitorsFactory


public interface ICobolBindingVisitorsFactory

Concrete implementations of the CobolBindingVisitorsFactory implement this interface.


Method Summary
 CobolElementVisitor createMarshalVisitor(byte[] hostBytes, int offset, ICobolConverters cobolConverters)
          Create an instance of a Marshal visitor which turns a Java data object to mainframe data as a byte array.
 CobolElementVisitor createUnmarshalVisitor(byte[] hostBytes, int offset, ICobolConverters cobolConverters)
          Create an instance of a Unmarshal visitor which turns mainframe data to a Java data object.
 

Method Detail

createMarshalVisitor

CobolElementVisitor createMarshalVisitor(byte[] hostBytes,
                                         int offset,
                                         ICobolConverters cobolConverters)
Create an instance of a Marshal visitor which turns a Java data object to mainframe data as a byte array.

Parameters:
hostBytes - host buffer used by visitor
offset - offset in host buffer
cobolConverters - set of converters to use for cobol elements
Returns:
an implementation of CobolElementVisitor

createUnmarshalVisitor

CobolElementVisitor createUnmarshalVisitor(byte[] hostBytes,
                                           int offset,
                                           ICobolConverters cobolConverters)
Create an instance of a Unmarshal visitor which turns mainframe data to a Java data object.

Parameters:
hostBytes - host buffer used by visitor
offset - offset in host buffer
cobolConverters - set of converters to use for cobol elements
Returns:
an implementation of CobolElementVisitor


Copyright © 2015 LegSem. All Rights Reserved.