public class MQCFSL extends PCFParameter
struct tagMQCFSL {
MQLONG Type; // Structure type
MQLONG StrucLength; // Structure length
MQLONG Parameter; // Parameter identifier
MQLONG CodedCharSetId; // Coded character set identifier
MQLONG Count; // Count of parameter values
MQLONG StringLength; // Length of one string
MQCHAR Strings[1]; // String values -- first character
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
int |
codedCharSetId
coded character set identifier
|
int |
count
count of parameter values
|
int |
parameter
parameter identifier
|
int |
stringLength
length of one string
|
java.lang.String[] |
strings
string values
|
int |
strucLength
structure length (fixed portion)
|
static int |
type
structure type
|
| Constructor and Description |
|---|
MQCFSL()
Constructs an MQCFSL instance with default field values.
|
MQCFSL(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQCFSL instance populated from a DataInput source.
|
MQCFSL(int parameter,
java.lang.String[] strings)
Initializes an MQCFSL with the specified values.
|
MQCFSL(MQMessage message)
Constructs an MQCFSL instance populated from an MQMessage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true when invoked with another MQCFSL instance with the same parameter and equivalent
set of values in the same order.
|
int |
getCodedCharSetId()
gets the coded character set identifier
|
int |
getCount()
gets the count of parameter values
|
int |
getParameter()
gets the parameter identifier
|
int |
getStringLength()
gets the length of one string (all are the same length)
|
java.lang.String[] |
getStrings()
gets the string values
|
java.lang.String |
getStringValue()
Get the string value of the parameter
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getType()
gets the structure type
|
java.lang.Object |
getValue()
Get the value of the parameter
|
int |
hashCode()
Returns a hash code value for the object
|
void |
setCodedCharSetId(int value)
set the coded character set identifier
|
void |
setParameter(int value)
sets the parameter identifier
|
void |
setStrings(java.lang.String[] value)
sets the string values
|
getHeaderVersion, getParameterName, nextParameterinitialize, size, toString, writecharacterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, store, store, type, validate, writepublic static final int type
public int strucLength
public int parameter
public int codedCharSetId
public int count
public int stringLength
public java.lang.String[] strings
public MQCFSL()
public MQCFSL(MQMessage message) throws MQException, java.io.IOException
message - the message to readMQException - if the message content does not yield a valid MQCFSL stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFSL(java.io.DataInput message,
int encoding,
int characterSet)
throws MQException,
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 messageMQException - if the message content does not yield a valid MQCFSL stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFSL(int parameter,
java.lang.String[] strings)
parameter - the parameter identifierstrings - the set of string valuespublic 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 getCodedCharSetId()
public void setCodedCharSetId(int value)
value - the coded character set identifierpublic int getCount()
public int getStringLength()
public java.lang.String[] getStrings()
public void setStrings(java.lang.String[] value)
value - the string valuespublic java.lang.Object getValue()
PCFParametergetValue in class PCFParameterPCFParameter.getValue()public java.lang.String getStringValue()
PCFParametergetStringValue in class PCFParameterPCFParameter.getStringValue()