com.legstar.coxb.transform
Interface IXmlToHostTransformer

All Known Implementing Classes:
AbstractXmlToHostTransformer

public interface IXmlToHostTransformer

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


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

Method Detail

transform

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

Parameters:
source - the XML Source to unmarshal XML data from (such as SAXSource, DOMSource, and StreamSource)
hostCharset - the host character set
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Source source)
                 throws HostTransformException
Transforms XML to host data.

Parameters:
source - the XML Source to unmarshal XML data from (such as SAXSource, DOMSource, and StreamSource)
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

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

Parameters:
source - the XML Source to unmarshal XML data from (such as SAXSource, DOMSource, and StreamSource)
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(Source source,
                 HostTransformStatus status)
                 throws HostTransformException
Transforms XML to host data.

Parameters:
source - the XML Source to unmarshal XML data from (such as SAXSource, DOMSource, and StreamSource)
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.