public class KeyHolder extends java.lang.Object implements IHolder
This class holds an array of bytes that is the key of a file.
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 |
---|
KeyHolder()
Constructs a
KeyHolder without a value. |
KeyHolder(byte[] initialValue)
Constructs a
KeyHolder without a 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[] newValue) |
public KeyHolder()
KeyHolder
without a value.public KeyHolder(byte[] initialValue)
KeyHolder
without a value.initialValue
- the initial valuepublic byte[] getValue()
IHolder
getValue
in interface IHolder
IHolder.getValue()
public void setValue(byte[] newValue)
newValue
- The value to set into the holder.
Note: The reference is used, no deep copy of the passed object is made.public java.lang.String getStringValue()
IHolder
getStringValue
in interface IHolder
IHolder.getStringValue()