|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.subsystems.qsys.api.CCSIDStaticHelpers
public class CCSIDStaticHelpers
This class contains static methods releated to CCSID conversions and lookups. This information is stored in plain text tables in the ccsidtables subdirectory for this plugin. These tables need to be updated for every new OS/400 release. Last update: V5R2
Field Summary | |
---|---|
static int |
CCSID_BIDI
Constant representing BIDI CCSIDs |
static int |
CCSID_DBCS
Constant representing DBCS CCSIDs |
static int |
CCSID_MIXED
Constant representing MIXED CCSIDs |
static int |
CCSID_NOT_SUPPORTED
Constant representing that the specified CCSID is not supported |
static int |
CCSID_SBCS
Constant representing SBCS CCSIDs |
static int |
CLVARCHARS_NOT
Constant for indexing into the CL variant characters array to retrieve the symbol for *NOT. |
static int |
CLVARCHARS_OR
Constant for indexing into the CL variant characters array to retrieve the symbol for *OR. |
static String |
Copyright
|
static int |
SPECCHARS_ATSIGN_INDEX
Constant for indexing into the special characters array to retrieve the @ sign |
static int |
SPECCHARS_DBLQUOTE_INDEX
Constant for indexing into the special characters array to retrieve the " sign |
static int |
SPECCHARS_DOLLAR_INDEX
Constant for indexing into the special characters array to retrieve the $ sign |
static int |
SPECCHARS_POUND_INDEX
Constant for indexing into the special characters array to retrieve the # sign |
Constructor Summary | |
---|---|
CCSIDStaticHelpers()
|
Method Summary | |
---|---|
static int |
checkCCSID(int ccsid)
Checks if the CCSID is DBCS, SBCS, mixed, BIDI or not supported. |
static int[] |
getBidiCCSIDs()
Return the integer array which contains the list of all supported BIDI CCSIDs. |
static char[] |
getCLVariantChars(int ccsid)
Retrieve the CL variant chars for *OR and *NOT for the specified CCSID |
static int[] |
getDbcsCCSIDs()
Return the integer array which contains the list of all supported mixed CCSIDs. |
static int[] |
getMixedCCSIDs()
Return the integer array which contains the list of all supported mixed CCSIDs. |
static char[] |
getSpecialChars(int ccsid)
Retrieve the special characters for the CCSID |
static int[] |
getSupportedCCSIDs()
Return the integer array which contains the list of all supported CCSIDs. |
static boolean |
isCCSIDValid(int ccsid)
Check if the CCSID is valid. |
static List |
postConversionProcess(List input,
int ccsid)
Postproccess the Strings for the specified CCSID, mapping source to target characters as specified in the %plugindir%/ccsidtables/postconversion/ccsidNumber.tbl table. |
static String |
postConversionProcess(String input,
int ccsid)
Postproccess the String for the specified CCSID, mapping source to target characters as specified in the %plugindir%/ccsidtables/plostconversion/ccsidNumber.tbl table. |
static byte[] |
preConversionProcess(byte[] input,
int ccsid)
Preproccess the byte[] for the specified CCSID, mapping source to target characters as specified in the %plugindir%/ccsidtables/preconversion/ccsidNumber.tbl table. |
static List |
preConversionProcess(List input,
int ccsid)
Preproccess the byte[] for the specified CCSID, mapping source to target characters as specified in the %plugindir%/ccsidtables/preconversion/ccsidNumber.tbl table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
public static final int CCSID_NOT_SUPPORTED
public static final int CCSID_SBCS
public static final int CCSID_DBCS
public static final int CCSID_MIXED
public static final int CCSID_BIDI
public static final int SPECCHARS_DOLLAR_INDEX
public static final int SPECCHARS_POUND_INDEX
public static final int SPECCHARS_ATSIGN_INDEX
public static final int SPECCHARS_DBLQUOTE_INDEX
public static final int CLVARCHARS_OR
#
,
Constant Field Valuespublic static final int CLVARCHARS_NOT
#
,
Constant Field ValuesConstructor Detail |
---|
public CCSIDStaticHelpers()
Method Detail |
---|
public static int[] getSupportedCCSIDs()
public static int[] getBidiCCSIDs()
public static int[] getMixedCCSIDs()
public static int[] getDbcsCCSIDs()
public static boolean isCCSIDValid(int ccsid)
ccsid
- The CCSID to be checked.
public static int checkCCSID(int ccsid)
ccsid
- The ccsid to lookup.public static char[] getSpecialChars(int ccsid)
ccsid
- The CCSID to lookup the special characters for
SPECCHARS_POUND_INDEX
,
SPECCHARS_DOLLAR_INDEX
,
SPECCHARS_ATSIGN_INDEX
,
SPECCHARS_DBLQUOTE_INDEX
public static char[] getCLVariantChars(int ccsid)
ccsid
- The CCSID to lookup the variant characters for
CLVARCHARS_OR
,
CLVARCHARS_NOT
public static List preConversionProcess(List input, int ccsid)
input
- The input list of source ilnes where each object in the list is an instance
of byte[]. Each input should still be in EBCDIC bytes.
public static byte[] preConversionProcess(byte[] input, int ccsid)
input
- The input array of bytes for pre-conversion processing. The input array should
still be the EBCDIC bytes.ccsid
- The source CCSID of the byte[]
public static List postConversionProcess(List input, int ccsid)
input
- The input list of source ilnes where each object in the list is an instance
of String.ccsid
- The source CCSID for the converison table
public static String postConversionProcess(String input, int ccsid)
input
- The input String for post-conversion processing.ccsid
- The source CCSID for the converison table
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |