public class Converter
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
com.ibm.as400.access.ConverterImpl |
impl |
Constructor and Description |
---|
Converter() |
Converter(int ccsid) |
Converter(int ccsid,
AS400 system) |
Converter(java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
char[] |
byteArrayToCharArray(byte[] source,
int offset,
int length) |
java.lang.String |
byteArrayToString(byte[] source) |
java.lang.String |
byteArrayToString(byte[] source,
int offset) |
java.lang.String |
byteArrayToString(byte[] source,
int offset,
int length) |
byte[] |
charArrayToByteArray(char[] source) |
void |
charArrayToByteArray(char[] source,
byte[] destination) |
void |
charArrayToByteArray(char[] source,
byte[] destination,
int offset) |
void |
charArrayToByteArray(char[] source,
byte[] destination,
int offset,
int length) |
int |
getCcsid() |
java.lang.String |
getEncoding() |
byte[] |
stringToByteArray(java.lang.String source) |
void |
stringToByteArray(java.lang.String source,
byte[] destination) |
void |
stringToByteArray(java.lang.String source,
byte[] destination,
int offset) |
void |
stringToByteArray(java.lang.String source,
byte[] destination,
int offset,
int length) |
public Converter()
public Converter(java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public Converter(int ccsid) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public Converter(int ccsid, AS400 system) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.lang.String byteArrayToString(byte[] source)
public java.lang.String byteArrayToString(byte[] source, int offset)
public java.lang.String byteArrayToString(byte[] source, int offset, int length)
public int getCcsid()
public java.lang.String getEncoding()
public byte[] stringToByteArray(java.lang.String source)
public void stringToByteArray(java.lang.String source, byte[] destination) throws java.io.CharConversionException
java.io.CharConversionException
public void stringToByteArray(java.lang.String source, byte[] destination, int offset) throws java.io.CharConversionException
java.io.CharConversionException
public void stringToByteArray(java.lang.String source, byte[] destination, int offset, int length) throws java.io.CharConversionException
java.io.CharConversionException
public byte[] charArrayToByteArray(char[] source)
public void charArrayToByteArray(char[] source, byte[] destination) throws java.io.CharConversionException
java.io.CharConversionException
public void charArrayToByteArray(char[] source, byte[] destination, int offset) throws java.io.CharConversionException
java.io.CharConversionException
public void charArrayToByteArray(char[] source, byte[] destination, int offset, int length) throws java.io.CharConversionException
java.io.CharConversionException
public char[] byteArrayToCharArray(byte[] source, int offset, int length)