Package com.ibm.mq.pcf
Class PCFHeader
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.pcf.PCFHeader
- Direct Known Subclasses:
MQCFH,PCFMessage,PCFParameter
public abstract class PCFHeader
extends com.ibm.mq.headers.internal.Header
implements com.ibm.mq.headers.internal.CachingHeader
Deprecated.
Abstract superclass of PCF header classes. All PCF headers have a type value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field -
Field Summary
Fields inherited from class com.ibm.mq.headers.internal.Header
DEFAULT_CCSID, DEFAULT_ENCODINGFields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Method Summary
Modifier and TypeMethodDescriptionabstract intgetType()Deprecated.voidinitialize(MQMessage message) Deprecated.Compatability method matching the MS0B implementation of PCFHeader.intsize()Deprecated.toString()Deprecated.return a string representing this headerintwrite(DataOutput message, int encoding, int characterSet) Deprecated.Writes the content of this data element to a message or byte stream.Methods inherited from class com.ibm.mq.headers.internal.Header
characterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, store, store, type, validate, writeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironmentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ibm.mq.headers.internal.CachingHeader
discardCachedContent, readCachedContent, writeCachedContent
-
Method Details
-
getType
public abstract int getType()Deprecated.- Returns:
- the integer type value (MQCFT_*) for this header.
-
initialize
Deprecated.Compatability method matching the MS0B implementation of PCFHeader. This method invokes read(MQMessage) and readCachedContent to populate instance fields.- Parameters:
message- the message.- Throws:
MQException- if an MQ error occurs when initializing headerIOException- if an IO error occurs when initializing header
-
write
Deprecated.Description copied from interface:MQDataWrites the content of this data element to a message or byte stream. The content is encoded (if applicable) using the specified encoding and CCSID.- Specified by:
writein interfaceMQData- Overrides:
writein classcom.ibm.mq.headers.internal.Header- Parameters:
message- the message.encoding- the numeric encoding. see (CMQC.MQENC_* for values)._characterSet- the Coded Character Set Identifier.- Returns:
- the number of bytes written
- Throws:
IOException- if an error occurs writing message content.- See Also:
-
toString
Deprecated.return a string representing this header- Overrides:
toStringin classcom.ibm.mq.headers.internal.Header- Returns:
- the string
- See Also:
-
size
public int size()Deprecated.
-
PCFHeaderinstead.