|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.legstar.coxb.transform.AbstractTransformers
public abstract class AbstractTransformers
A generic class that provides transformer capabilities for a given structure.
A structure maps to a java class and a COBOL structure. This class does not implement the transformers, it acts as a container. Classes derived from this one will typically implement a constructor that creates the directional transformers, java to host and host to java.
Constructor Summary | |
---|---|
AbstractTransformers()
No arg constructor. |
|
AbstractTransformers(IJavaToHostTransformer javaToHost,
IHostToJavaTransformer hostToJava)
Creates a provider with its directional transformers. |
Method Summary | |
---|---|
IHostToJavaTransformer |
getHostToJava()
Return the transformer that turns host data into a java data object. |
IJavaToHostTransformer |
getJavaToHost()
|
void |
setHostToJava(IHostToJavaTransformer hostToJava)
Sets the transformer that turns host data into a java data object. |
void |
setJavaToHost(IJavaToHostTransformer javaToHost)
Sets the transformer that turns a java data object into host data. |
byte[] |
toHost(Object valueObject)
Transforms java data object to host data. |
byte[] |
toHost(Object valueObject,
HostTransformStatus status)
Transforms java data object to host data. |
byte[] |
toHost(Object valueObject,
String hostCharset)
Transforms java data object to host data with a specific host character set. |
byte[] |
toHost(Object valueObject,
String hostCharset,
HostTransformStatus status)
Transforms java data object to host data with a specific host character set. |
Object |
toJava(byte[] hostData,
HostTransformStatus status)
Transforms host data to java data object. |
Object |
toJava(byte[] hostData,
int offset)
Transforms host data to java data object. |
Object |
toJava(byte[] hostData,
int offset,
HostTransformStatus status)
Transforms host data to java data object. |
Object |
toJava(byte[] hostData,
int offset,
String hostCharset)
Transforms host data to java data object with a specific host character set. |
Object |
toJava(byte[] hostData,
int offset,
String hostCharset,
HostTransformStatus status)
Transforms host data to java data object with a specific host character set. |
Object |
toJava(byte[] hostData,
String hostCharset,
HostTransformStatus status)
Transforms host data to java data object with a specific host character set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.legstar.coxb.transform.IHostTransformers |
---|
toJava, toJava |
Constructor Detail |
---|
public AbstractTransformers()
public AbstractTransformers(IJavaToHostTransformer javaToHost, IHostToJavaTransformer hostToJava)
javaToHost
- java to host transformerhostToJava
- host to java transformerMethod Detail |
---|
public IJavaToHostTransformer getJavaToHost()
getJavaToHost
in interface IHostTransformers
public void setJavaToHost(IJavaToHostTransformer javaToHost)
IHostTransformers
setJavaToHost
in interface IHostTransformers
javaToHost
- the the transformer that turns a java data object into
host data to setpublic IHostToJavaTransformer getHostToJava()
IHostTransformers
getHostToJava
in interface IHostTransformers
public void setHostToJava(IHostToJavaTransformer hostToJava)
IHostTransformers
setHostToJava
in interface IHostTransformers
hostToJava
- the transformer that turns host data into a java data
object to setpublic byte[] toHost(Object valueObject, String hostCharset) throws HostTransformException
toHost
in interface IHostTransformers
valueObject
- a java value objecthostCharset
- the host character set
HostTransformException
- if transformation failspublic byte[] toHost(Object valueObject) throws HostTransformException
toHost
in interface IHostTransformers
valueObject
- a java value object
HostTransformException
- if transformation failspublic byte[] toHost(Object valueObject, String hostCharset, HostTransformStatus status) throws HostTransformException
toHost
in interface IHostTransformers
valueObject
- a java value objecthostCharset
- the host character setstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic byte[] toHost(Object valueObject, HostTransformStatus status) throws HostTransformException
toHost
in interface IHostTransformers
valueObject
- a java value objectstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic Object toJava(byte[] hostData, String hostCharset, HostTransformStatus status) throws HostTransformException
toJava
in interface IHostTransformers
hostData
- a byte array containing host datahostCharset
- the host character setstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic Object toJava(byte[] hostData, HostTransformStatus status) throws HostTransformException
toJava
in interface IHostTransformers
hostData
- a byte array containing host datastatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic Object toJava(byte[] hostData, int offset, String hostCharset) throws HostTransformException
toJava
in interface IHostTransformers
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatahostCharset
- the host character set
HostTransformException
- if transformation failspublic Object toJava(byte[] hostData, int offset) throws HostTransformException
toJava
in interface IHostTransformers
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostData
HostTransformException
- if transformation failspublic Object toJava(byte[] hostData, int offset, String hostCharset, HostTransformStatus status) throws HostTransformException
toJava
in interface IHostTransformers
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatahostCharset
- the host character setstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic Object toJava(byte[] hostData, int offset, HostTransformStatus status) throws HostTransformException
toJava
in interface IHostTransformers
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatastatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |