public class CWAHolder extends java.lang.Object implements IHolder
This class holds an array of bytes that is a copy of the contents of the CWA.
The actual data is an instance variable of type byte[]
with the name value. This instance variable can be accessed using
getters getValue() and getStringValue() and setter setValue(byte[])
| Constructor and Description |
|---|
CWAHolder()
Constructs a
CWAHolder without a value. |
CWAHolder(byte[] initialValue)
Constructs a
CWAHolder with an initial value. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getStringValue()
Returns a String derived from the data in the IHolder, assuming
that the data is encoded in the LOCALCCSID.
|
byte[] |
getValue()
Returns the raw byte array from the IHolder
|
void |
setValue(byte[] bytes)
Allows the setting of the data value into the holder.
|
public CWAHolder()
CWAHolder without a value.public CWAHolder(byte[] initialValue)
CWAHolder with an initial value.initialValue - the initial valuepublic byte[] getValue()
IHoldergetValue in interface IHolderIHolder.getValue()public java.lang.String getStringValue()
IHoldergetStringValue in interface IHolderIHolder.getStringValue()public void setValue(byte[] bytes)
bytes - The payload of the record holder.