com.legstar.coxb.transform
Interface IJsonToHostTransformer

All Known Implementing Classes:
AbstractJsonToHostTransformer

public interface IJsonToHostTransformer

JSON to Host transformers offer the capability to turn an JSON to raw mainframe byte arrays.


Method Summary
 byte[] transform(Reader reader)
          Transforms JSON to host data.
 byte[] transform(Reader reader, HostTransformStatus status)
          Transforms JSON to host data.
 byte[] transform(Reader source, String hostCharset)
          Transforms JSON to host data with a specific host character set.
 byte[] transform(Reader source, String hostCharset, HostTransformStatus status)
          Transforms JSON to host data with a specific host character set.
 

Method Detail

transform

byte[] transform(Reader source,
                 String hostCharset)
                 throws HostTransformException
Transforms JSON to host data with a specific host character set.

Parameters:
source - the JSON Reader to unmarshal JSON data from
hostCharset - the host character set
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Reader reader)
                 throws HostTransformException
Transforms JSON to host data.

Parameters:
reader - the JSON Reader to unmarshal JSON data from
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Reader source,
                 String hostCharset,
                 HostTransformStatus status)
                 throws HostTransformException
Transforms JSON to host data with a specific host character set.

Parameters:
source - the JSON Reader to unmarshal JSON data from
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Reader reader,
                 HostTransformStatus status)
                 throws HostTransformException
Transforms JSON to host data.

Parameters:
reader - the JSON Reader to unmarshal JSON data from
status - will contain information on the transformation after it is executed
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails


Copyright © 2015 LegSem. All Rights Reserved.