ConvTableAsciiMap, ConvTableBidiMap, ConvTableDoubleMap, ConvTableJavaMap, ConvTableMixedMap, ConvTableSingleMap, ConvTableUnicodeBigMappublic abstract class ConvTable extends Object
| Modifier and Type | Method | Description |
|---|---|---|
char[] |
byteArrayToCharArray(byte[] source,
int offset,
int length) |
|
char[] |
byteArrayToCharArray(byte[] source,
int offset,
int length,
int type) |
|
String |
byteArrayToString(byte[] source,
int offset,
int length) |
|
String |
byteArrayToString(byte[] source,
int offset,
int length,
int type) |
|
byte[] |
charArrayToByteArray(char[] source) |
|
void |
charArrayToByteArray(char[] source,
byte[] buf,
int offset) |
|
void |
charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length) |
|
void |
charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length,
int type) |
|
int |
charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length,
BidiConversionProperties properties) |
|
byte[] |
charArrayToByteArray(char[] source,
int type) |
|
int |
getCcsid() |
|
String |
getEncoding() |
|
static ConvTable |
getTable(int ccsid,
AS400ImplRemote system) |
|
static ConvTable |
getTable(String encoding) |
|
static boolean |
isMixedCCSID(int ccsid) |
Determine if a CCSID is a mixed CCSID.
|
byte[] |
stringToByteArray(char[] source,
int offset,
int length) |
|
byte[] |
stringToByteArray(String source) |
|
void |
stringToByteArray(String source,
byte[] buf,
int offset) |
|
void |
stringToByteArray(String source,
byte[] buf,
int offset,
int length) |
|
void |
stringToByteArray(String source,
byte[] buf,
int offset,
int length,
int type) |
|
int |
stringToByteArray(String source,
byte[] buf,
int offset,
int length,
BidiConversionProperties properties) |
Place the string into the specified buffer, beginning at offset for length.
|
byte[] |
stringToByteArray(String source,
int type) |
|
int |
validateData(byte[] buf,
int offset,
int length) |
public String byteArrayToString(byte[] source, int offset, int length, int type)
public String byteArrayToString(byte[] source, int offset, int length)
public char[] byteArrayToCharArray(byte[] source,
int offset,
int length)
public char[] byteArrayToCharArray(byte[] source,
int offset,
int length,
int type)
public int getCcsid()
public String getEncoding()
public static final ConvTable getTable(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static final ConvTable getTable(int ccsid, AS400ImplRemote system) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic byte[] stringToByteArray(String source, int type)
public byte[] stringToByteArray(String source)
public byte[] stringToByteArray(char[] source,
int offset,
int length)
public void stringToByteArray(String source, byte[] buf, int offset) throws CharConversionException
CharConversionExceptionpublic void stringToByteArray(String source, byte[] buf, int offset, int length) throws CharConversionException
CharConversionExceptionpublic void stringToByteArray(String source, byte[] buf, int offset, int length, int type) throws CharConversionException
CharConversionExceptionpublic int stringToByteArray(String source, byte[] buf, int offset, int length, BidiConversionProperties properties) throws CharConversionException
source - String to convertbuf - output bufferoffset - offset in buffer to put informationlength - maximum number of bytes to add to the bufferproperties - BidiConversionPropertiesCharConversionException - If a character conversion error occurs.public byte[] charArrayToByteArray(char[] source,
int type)
public byte[] charArrayToByteArray(char[] source)
public void charArrayToByteArray(char[] source,
byte[] buf,
int offset)
throws CharConversionException
CharConversionExceptionpublic void charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length)
throws CharConversionException
CharConversionExceptionpublic void charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length,
int type)
throws CharConversionException
CharConversionExceptionpublic int charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length,
BidiConversionProperties properties)
throws CharConversionException
CharConversionExceptionpublic int validateData(byte[] buf,
int offset,
int length)
public static boolean isMixedCCSID(int ccsid)
ccsid - CCSID to be testedCopyright © 2024. All rights reserved.