public abstract class ConvTable
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
char[] |
byteArrayToCharArray(byte[] source,
int offset,
int length) |
char[] |
byteArrayToCharArray(byte[] source,
int offset,
int length,
int type) |
java.lang.String |
byteArrayToString(byte[] source,
int offset,
int length) |
java.lang.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) |
int |
charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length,
BidiConversionProperties properties) |
void |
charArrayToByteArray(char[] source,
byte[] buf,
int offset,
int length,
int type) |
byte[] |
charArrayToByteArray(char[] source,
int type) |
int |
getCcsid() |
java.lang.String |
getEncoding() |
static ConvTable |
getTable(int ccsid,
AS400ImplRemote system) |
static ConvTable |
getTable(java.lang.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(java.lang.String source) |
void |
stringToByteArray(java.lang.String source,
byte[] buf,
int offset) |
void |
stringToByteArray(java.lang.String source,
byte[] buf,
int offset,
int length) |
int |
stringToByteArray(java.lang.String source,
byte[] buf,
int offset,
int length,
BidiConversionProperties properties)
Place the string into the specified buffer, beginning at offset for length.
|
void |
stringToByteArray(java.lang.String source,
byte[] buf,
int offset,
int length,
int type) |
byte[] |
stringToByteArray(java.lang.String source,
int type) |
int |
validateData(byte[] buf,
int offset,
int length) |
public java.lang.String byteArrayToString(byte[] source, int offset, int length, int type)
public java.lang.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 java.lang.String getEncoding()
public static final ConvTable getTable(java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static final ConvTable getTable(int ccsid, AS400ImplRemote system) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public byte[] stringToByteArray(java.lang.String source, int type)
public byte[] stringToByteArray(java.lang.String source)
public byte[] stringToByteArray(char[] source, int offset, int length)
public void stringToByteArray(java.lang.String source, byte[] buf, int offset) throws java.io.CharConversionException
java.io.CharConversionException
public void stringToByteArray(java.lang.String source, byte[] buf, int offset, int length) throws java.io.CharConversionException
java.io.CharConversionException
public void stringToByteArray(java.lang.String source, byte[] buf, int offset, int length, int type) throws java.io.CharConversionException
java.io.CharConversionException
public int stringToByteArray(java.lang.String source, byte[] buf, int offset, int length, BidiConversionProperties properties) throws java.io.CharConversionException
source
- String to convertbuf
- output bufferoffset
- offset in buffer to put informationlength
- maximum number of bytes to add to the bufferproperties
- BidiConversionPropertiesjava.io.CharConversionException
- 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 java.io.CharConversionException
java.io.CharConversionException
public void charArrayToByteArray(char[] source, byte[] buf, int offset, int length) throws java.io.CharConversionException
java.io.CharConversionException
public void charArrayToByteArray(char[] source, byte[] buf, int offset, int length, int type) throws java.io.CharConversionException
java.io.CharConversionException
public int charArrayToByteArray(char[] source, byte[] buf, int offset, int length, BidiConversionProperties properties) throws java.io.CharConversionException
java.io.CharConversionException
public int validateData(byte[] buf, int offset, int length)
public static boolean isMixedCCSID(int ccsid)
ccsid
- CCSID to be tested