com.legstar.coxb.transform
Interface IHostToJsonTransformer

All Known Implementing Classes:
AbstractHostToJsonTransformer

public interface IHostToJsonTransformer

Host to JSON transformers offer the capability to turn a raw mainframe byte array to JSON.


Method Summary
 void transform(byte[] hostData, int offset, Writer writer)
          Transforms host data to JSON.
 void transform(byte[] hostData, int offset, Writer writer, HostTransformStatus status)
          Transforms host data to JSON.
 void transform(byte[] hostData, int offset, Writer writer, String hostCharset)
          Transforms host data to JSON with a specific host character set.
 void transform(byte[] hostData, int offset, Writer writer, String hostCharset, HostTransformStatus status)
          Transforms host data to JSON with a specific host character set.
 void transform(byte[] hostData, Writer writer)
          Transforms host data to JSON.
 void transform(byte[] hostData, Writer writer, HostTransformStatus status)
          Transforms host data to JSON.
 void transform(byte[] hostData, Writer writer, String hostCharset)
          Transforms host data to JSON with a specific host character set.
 void transform(byte[] hostData, Writer writer, String hostCharset, HostTransformStatus status)
          Transforms host data to JSON with a specific host character set.
 

Method Detail

transform

void transform(byte[] hostData,
               Writer writer,
               String hostCharset)
               throws HostTransformException
Transforms host data to JSON with a specific host character set.

Parameters:
hostData - a byte array containing host data
writer - JSON will be sent to this writer.
hostCharset - the host character set
Throws:
HostTransformException - if transformation fails

transform

void transform(byte[] hostData,
               int offset,
               Writer writer,
               String hostCharset)
               throws HostTransformException
Transforms host data to JSON with a specific host character set.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
writer - JSON will be sent to this writer.
hostCharset - the host character set
Throws:
HostTransformException - if transformation fails

transform

void transform(byte[] hostData,
               Writer writer)
               throws HostTransformException
Transforms host data to JSON.

Parameters:
hostData - a byte array containing host data
writer - JSON will be sent to this writer.
Throws:
HostTransformException - if transformation fails

transform

void transform(byte[] hostData,
               int offset,
               Writer writer)
               throws HostTransformException
Transforms host data to JSON.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
writer - JSON will be sent to this writer.
Throws:
HostTransformException - if transformation fails

transform

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

Parameters:
hostData - a byte array containing host data
writer - JSON will be sent to this writer.
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Throws:
HostTransformException - if transformation fails

transform

void transform(byte[] hostData,
               int offset,
               Writer writer,
               String hostCharset,
               HostTransformStatus status)
               throws HostTransformException
Transforms host data to JSON with a specific host character set.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
writer - JSON will be sent to this writer.
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Throws:
HostTransformException - if transformation fails

transform

void transform(byte[] hostData,
               Writer writer,
               HostTransformStatus status)
               throws HostTransformException
Transforms host data to JSON.

Parameters:
hostData - a byte array containing host data
writer - JSON will be sent to this writer.
status - will contain information on the transformation after it is executed
Throws:
HostTransformException - if transformation fails

transform

void transform(byte[] hostData,
               int offset,
               Writer writer,
               HostTransformStatus status)
               throws HostTransformException
Transforms host data to JSON.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
writer - JSON will be sent to this writer.
status - will contain information on the transformation after it is executed
Throws:
HostTransformException - if transformation fails


Copyright © 2015 LegSem. All Rights Reserved.