public class Charsets
extends com.ibm.mq.jmqi.JmqiObject
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
convert(byte[] bytes,
int ccsid)
Converts byte array content in the specified CCSID into a Java String.
|
static java.lang.String |
convert(byte[] bytes,
int offset,
int length,
int ccsid)
Converts byte array content in the specified CCSID into a Java String.
|
static java.lang.String |
convert(java.nio.ByteBuffer bytes,
int offset,
int length,
int ccsid)
Converts ByteBuffer content in the specified CCSID into a Java String.
|
static byte[] |
convert(java.lang.String string,
int ccsid)
Converts a Java string into a byte array in the specified CCSID.
|
public static java.lang.String convert(byte[] bytes,
int ccsid)
throws java.io.UnsupportedEncodingException
bytes - The dataccsid - The Coded Character Set IDjava.io.UnsupportedEncodingException - if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage.public static java.lang.String convert(byte[] bytes,
int offset,
int length,
int ccsid)
throws java.io.UnsupportedEncodingException
bytes - offset - length - ccsid - java.io.UnsupportedEncodingException - if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage.public static java.lang.String convert(java.nio.ByteBuffer bytes,
int offset,
int length,
int ccsid)
throws java.io.UnsupportedEncodingException
bytes - offset - length - ccsid - java.io.UnsupportedEncodingException - if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage.public static byte[] convert(java.lang.String string,
int ccsid)
throws java.io.UnsupportedEncodingException
string - ccsid - java.io.UnsupportedEncodingException - if there is no codepage mapping for the supplied CCSID
value or the platform cannot convert from the codepage.