|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICobolNationalConverter
This class uses the Strategy pattern to shield marshallers/unmarshallers from the specific Java String to cobol national representation.
Method Summary | |
---|---|
int |
fromHost(ICobolArrayNationalBinding ce,
byte[] hostSource,
int offset,
int currentOccurs)
Converts an array of Cobol values from a host buffer to a java array. |
int |
fromHost(ICobolNationalBinding ce,
byte[] hostSource,
int offset)
Converts an element Cobol value from a host buffer to a java value. |
int |
toHost(ICobolArrayNationalBinding ce,
byte[] hostTarget,
int offset,
int currentOccurs)
Converts an array of java values to a host representation stored in host buffer. |
int |
toHost(ICobolNationalBinding ce,
byte[] hostTarget,
int offset)
Converts an element java value to a host representation stored in host buffer. |
Methods inherited from interface com.legstar.coxb.convert.ICobolConverter |
---|
getCobolContext, setCobolContext |
Method Detail |
---|
int toHost(ICobolNationalBinding ce, byte[] hostTarget, int offset) throws HostException
ce
- Cobol element descriptorhostTarget
- Target host bufferoffset
- Offset in the target host buffer
HostException
- if conversion failsint toHost(ICobolArrayNationalBinding ce, byte[] hostTarget, int offset, int currentOccurs) throws HostException
ce
- Cobol array descriptorhostTarget
- Target host bufferoffset
- Offset in the target host buffercurrentOccurs
- actual number of items in array
HostException
- if conversion failsint fromHost(ICobolNationalBinding ce, byte[] hostSource, int offset) throws HostException
ce
- Cobol element descriptorhostSource
- Source host bufferoffset
- Offset in the source host buffer
HostException
- if conversion failsint fromHost(ICobolArrayNationalBinding ce, byte[] hostSource, int offset, int currentOccurs) throws HostException
ce
- Cobol array descriptorhostSource
- Source host bufferoffset
- Offset in the source host buffercurrentOccurs
- actual number of items in array
HostException
- if conversion fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |