com.ibm.mq.headers
Class Charsets
- java.lang.Object
- com.ibm.mq.jmqi.JmqiObject
- com.ibm.mq.headers.Charsets
- public class Charsets
- extends com.ibm.mq.jmqi.JmqiObject
Field Summary
Fields inherited from class com.ibm.mq.jmqi.JmqiObject |
---|
COMP_JM, COMP_JN, COMP_JO |
Method Summary
Modifier and Type | Method and Description |
---|---|
|
convert(byte[] bytes,int ccsid)
Converts byte array content in the specified CCSID into a Java String.
|
|
convert(byte[] bytes,int offset,int length,int ccsid)
Converts byte array content in the specified CCSID into a Java String.
|
|
convert(java.nio.ByteBuffer bytes,int offset,int length,int ccsid)
Converts ByteBuffer content in the specified CCSID into a Java String.
|
|
convert(java.lang.String string,int ccsid)
Converts a Java string into a byte array in the specified CCSID.
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
convert
- public static java.lang.String convert( byte[] bytes,
- int ccsid)
- throws java.io.UnsupportedEncodingException
Converts byte array content in the specified CCSID into a Java String.
Parameters:
bytes
- The data ccsid
- The Coded Character Set ID Returns:
The data as a Unicode string
Throws:
java.io.UnsupportedEncodingException
- if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage. convert
- public static java.lang.String convert( byte[] bytes,
- int offset,
- int length,
- int ccsid)
- throws java.io.UnsupportedEncodingException
Converts byte array content in the specified CCSID into a Java String.
Throws:
java.io.UnsupportedEncodingException
- if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage. convert
- public static java.lang.String convert( java.nio.ByteBuffer bytes,
- int offset,
- int length,
- int ccsid)
- throws java.io.UnsupportedEncodingException
Converts ByteBuffer content in the specified CCSID into a Java String.
Throws:
java.io.UnsupportedEncodingException
- if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage. convert
- public static byte[] convert(java.lang.String string,
- int ccsid)
- throws java.io.UnsupportedEncodingException
Converts a Java string into a byte array in the specified CCSID.
Throws:
java.io.UnsupportedEncodingException
- if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage.