public abstract class ConvTable
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
byteArrayToString(byte[] source,
int offset,
int length) |
java.lang.String |
byteArrayToString(byte[] source,
int offset,
int length,
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 int getCcsid()
public java.lang.String getEncoding()
public static final ConvTable getTable(java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static final ConvTable getTable(int ccsid, AS400ImplRemote system) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic 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.CharConversionExceptionpublic void stringToByteArray(java.lang.String source,
byte[] buf,
int offset,
int length)
throws java.io.CharConversionException
java.io.CharConversionExceptionpublic void stringToByteArray(java.lang.String source,
byte[] buf,
int offset,
int length,
int type)
throws java.io.CharConversionException
java.io.CharConversionExceptionpublic 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 int validateData(byte[] buf,
int offset,
int length)
public static boolean isMixedCCSID(int ccsid)
ccsid - CCSID to be tested