|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mq.pcf.PCFHeader | +--com.ibm.mq.pcf.PCFParameter | +--com.ibm.mq.pcf.MQCFIL
A class encapsulating the MQCFIL (PCF integer list parameter) structure.
New in version 2.0:
Field Summary | |
static java.lang.String |
copyright
|
int |
count
|
int |
parameter
|
int |
strucLength
|
static int |
type
|
int[] |
values
|
Constructor Summary | |
MQCFIL()
Default constructor. |
|
MQCFIL(int parameter,
int[] values)
Initializes an MQCFIL with the specified values. |
|
MQCFIL(com.ibm.mq.MQMessage message)
Initializes a new MQCFIL instance by reading from an MQMessage. |
Method Summary | |
int |
getParameter()
Returns the parameter identifier of this PCF parameter structure. |
java.lang.String |
getStringValue()
Returns a string representing the values of this PCF integer array structure, one value per line. |
int |
getType()
Returns the type identifier of this PCF parameter structure. |
java.lang.Object |
getValue()
Returns the value of this PCF parameter structure. |
void |
initialize(com.ibm.mq.MQMessage message)
Initializes the contents of an MQCFIL by reading from an MQMessage. |
void |
setValue(java.lang.Object value)
Sets the value of this PCF parameter structure. |
void |
setValues(int[] values)
Sets the MQCFIL integer list in the values field, also updating the strucLength and count fields. |
int |
size()
Returns the size in bytes of this MQCFIL (this will vary depending upon the number of integers in the list). |
java.lang.String |
toString()
|
int |
write(com.ibm.mq.MQMessage message)
Writes the contents of this MQCFIL to an MQMessage. |
static int |
write(com.ibm.mq.MQMessage message,
int parameter,
int[] values)
A convenience method for writing an MQCFIL header with the specified values to a message. |
Methods inherited from class com.ibm.mq.pcf.PCFParameter |
nextParameter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String copyright
public static final int type
public int strucLength
public int parameter
public int count
public int[] values
Constructor Detail |
public MQCFIL()
public MQCFIL(int parameter, int[] values)
parameter
- the parameter identifiervalue
- the set of integer parameter valuesCMQCFC
public MQCFIL(com.ibm.mq.MQMessage message) throws com.ibm.mq.MQException, java.io.IOException
message
- the message to read fromcom.ibm.mq.MQException
- if the message contents do not yield a valid
MQCFIL structurejava.io.IOException
- if there is a problem reading the messageMethod Detail |
public static int write(com.ibm.mq.MQMessage message, int parameter, int[] values) throws java.io.IOException
message
- the message to write toparameter
- the parameter identifierparm_count
- the set of integer valuesCMQCFC
public void initialize(com.ibm.mq.MQMessage message) throws com.ibm.mq.MQException, java.io.IOException
initialize
in class PCFHeader
message
- the message to read fromcom.ibm.mq.MQException
- if the message contents do not yield a valid
MQCFIL structure:
java.io.IOException
- if there is a problem reading the messagepublic int write(com.ibm.mq.MQMessage message) throws java.io.IOException
write
in class PCFHeader
message
- the message to write tojava.io.IOException
- if there is a problem writing the messagepublic int size()
size
in class PCFHeader
public int getType()
getType
in class PCFParameter
public int getParameter()
getParameter
in class PCFParameter
public java.lang.Object getValue()
getValue
in class PCFParameter
public java.lang.String getStringValue()
getStringValue
in class PCFParameter
public void setValue(java.lang.Object value) throws java.lang.ClassCastException
setValue
in class PCFParameter
public void setValues(int[] values)
values
- the integer value arraypublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |