public class TWAHolder extends java.lang.Object implements IHolder
This class holds an array of bytes that is a copy of the contents of the
TWA.
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 |
---|
TWAHolder()
Constructs a
TWAHolder without a value. |
TWAHolder(byte[] initialValue)
Constructs a
TWAHolder . |
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[] newValue)
Allows the value inside the holder to be set.
|
public TWAHolder()
TWAHolder
without a value.public TWAHolder(byte[] initialValue)
TWAHolder
.initialValue
- the intial valuepublic byte[] getValue()
IHolder
getValue
in interface IHolder
IHolder.getValue()
public java.lang.String getStringValue()
IHolder
getStringValue
in interface IHolder
IHolder.getStringValue()
public void setValue(byte[] newValue)
newValue
- The new value which will be set.
This just sets the reference.
No deep copying of the data is performed.