ConvTableAsciiMap
, ConvTableBidiMap
, ConvTableDoubleMap
, ConvTableJavaMap
, ConvTableMixedMap
, ConvTableSingleMap
, ConvTableUnicodeBigMap
public 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
UnsupportedEncodingException
public static final ConvTable getTable(int ccsid, AS400ImplRemote system) throws UnsupportedEncodingException
UnsupportedEncodingException
public 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
CharConversionException
public void stringToByteArray(String source, byte[] buf, int offset, int length) throws CharConversionException
CharConversionException
public void stringToByteArray(String source, byte[] buf, int offset, int length, int type) throws CharConversionException
CharConversionException
public 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
CharConversionException
public void charArrayToByteArray(char[] source, byte[] buf, int offset, int length) throws CharConversionException
CharConversionException
public void charArrayToByteArray(char[] source, byte[] buf, int offset, int length, int type) throws CharConversionException
CharConversionException
public int charArrayToByteArray(char[] source, byte[] buf, int offset, int length, BidiConversionProperties properties) throws CharConversionException
CharConversionException
public int validateData(byte[] buf, int offset, int length)
public static boolean isMixedCCSID(int ccsid)
ccsid
- CCSID to be testedCopyright © 2024. All rights reserved.