com.legstar.coxb.transform
Interface IHostToJavaTransformer

All Superinterfaces:
IHostTransformer
All Known Implementing Classes:
AbstractHostToJavaTransformer

public interface IHostToJavaTransformer
extends IHostTransformer

Host to Java transformers offer the capability to turn a raw mainframe byte array to a java data object.


Method Summary
<T> T
transform(byte[] hostData)
          Transforms host data to java.
<T> T
transform(byte[] hostData, HostTransformStatus status)
          Transforms host data to java.
<T> T
transform(byte[] hostData, int offset)
          Transforms host data to java.
<T> T
transform(byte[] hostData, int offset, HostTransformStatus status)
          Transforms host data to java.
<T> T
transform(byte[] hostData, int offset, String hostCharset)
          Transforms host data to java with a specific host character set.
<T> T
transform(byte[] hostData, int offset, String hostCharset, HostTransformStatus status)
          Transforms host data to java with a specific host character set.
<T> T
transform(byte[] hostData, String hostCharset)
          Transforms host data to java with a specific host character set.
<T> T
transform(byte[] hostData, String hostCharset, HostTransformStatus status)
          Transforms host data to java with a specific host character set.
 
Methods inherited from interface com.legstar.coxb.transform.IHostTransformer
getBinding, getByteLength, getCobolBindingVisitorsFactory, getCobolContext, getCobolConverters, newBinding, setCobolBindingVisitorsFactory, setCobolContext, setCobolConverters
 

Method Detail

transform

<T> T transform(byte[] hostData,
                String hostCharset)
            throws HostTransformException
Transforms host data to java with a specific host character set.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
hostCharset - the host character set
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData,
                int offset,
                String hostCharset)
            throws HostTransformException
Transforms host data to java with a specific host character set.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
hostCharset - the host character set
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData)
            throws HostTransformException
Transforms host data to java.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData,
                int offset)
            throws HostTransformException
Transforms host data to java.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData,
                String hostCharset,
                HostTransformStatus status)
            throws HostTransformException
Transforms host data to java with a specific host character set.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData,
                int offset,
                String hostCharset,
                HostTransformStatus status)
            throws HostTransformException
Transforms host data to java with a specific host character set.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData,
                HostTransformStatus status)
            throws HostTransformException
Transforms host data to java.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

transform

<T> T transform(byte[] hostData,
                int offset,
                HostTransformStatus status)
            throws HostTransformException
Transforms host data to java.

Type Parameters:
T - the bound object type
Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails


Copyright © 2015 LegSem. All Rights Reserved.