public class MQCFBS extends PCFParameter
struct tagMQCFBS {
MQLONG Type; // Structure type
MQLONG StrucLength; // Structure length
MQLONG Parameter; // Parameter identifier
MQLONG StringLength; // Length of string
MQBYTE String[1]; // String value -- first byte
};
MQHeader.Field| Constructor and Description |
|---|
MQCFBS()
Constructs an MQCFBS instance with default field values.
|
MQCFBS(java.io.DataInput message)
Constructs an MQCFBS instance populated from an MQMessage.
|
MQCFBS(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQCFBS instance populated from a DataInput source.
|
MQCFBS(int parameter,
byte[] bytes)
Initializes an MQCFBS with the specified values.
|
MQCFBS(int parameter,
java.lang.String string)
Initializes an MQCFBS with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true when invoked with another MQCFBS instance with the same parameter and equivalent
value.
|
int |
getHeaderVersion()
gets the version number of the header format
|
int |
getParameter()
gets the parameter identifier
|
byte[] |
getString()
gets the string
|
int |
getStringLength()
gets the length of the string
|
java.lang.String |
getStringValue()
gets the parameter value as a String
|
int |
getStrucLength()
Gets the length of the structure.
|
int |
getType()
gets the structure type
|
java.lang.Object |
getValue()
gets the parameter value
|
int |
hashCode()
Returns a hash code value for the object
|
void |
setParameter(int value)
sets the parameter identifier
|
void |
setString(byte[] value)
sets the string
|
getParameterName, nextParametercharacterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, toString, type, validate, write, writepublic MQCFBS()
public MQCFBS(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQCFBS stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFBS(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
message - the MQMessage or other DataInput source to readencoding - the initial numeric encoding of the data in the messagecharacterSet - the initial CCSID of the data in the messageMQDataException - if the message content does not yield a valid MQCFBS stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFBS(int parameter,
java.lang.String string)
parameter - the parameter identifierstring - the string parameter valuepublic MQCFBS(int parameter,
byte[] bytes)
parameter - the parameter identifierbytes - the binary parameter valuepublic boolean equals(java.lang.Object obj)
equals in class PCFParameterobj - public int hashCode()
PCFParameterhashCode in class PCFParameterPCFParameter.hashCode()public int getType()
public int getStrucLength()
public int getParameter()
getParameter in class PCFParameterpublic void setParameter(int value)
value - the parameter identifierpublic int getStringLength()
public byte[] getString()
public void setString(byte[] value)
value - the stringpublic java.lang.Object getValue()
PCFParametergetValue in class PCFParameterPCFParameter.getValue()public java.lang.String getStringValue()
PCFParametergetStringValue in class PCFParameterPCFParameter.getStringValue()public int getHeaderVersion()
PCFParametergetHeaderVersion in class PCFParameterPCFParameter.getHeaderVersion()