Serializablepublic class Converter extends Object implements Serializable
| Modifier and Type | Field | Description |
|---|---|---|
com.ibm.as400.access.ConverterImpl |
impl |
| Constructor | Description |
|---|---|
Converter() |
|
Converter(int ccsid) |
|
Converter(int ccsid,
AS400 system) |
|
Converter(String encoding) |
| Modifier and Type | Method | Description |
|---|---|---|
char[] |
byteArrayToCharArray(byte[] source,
int offset,
int length) |
|
String |
byteArrayToString(byte[] source) |
|
String |
byteArrayToString(byte[] source,
int offset) |
|
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() |
|
String |
getEncoding() |
|
byte[] |
stringToByteArray(String source) |
|
void |
stringToByteArray(String source,
byte[] destination) |
|
void |
stringToByteArray(String source,
byte[] destination,
int offset) |
|
void |
stringToByteArray(String source,
byte[] destination,
int offset,
int length) |
public Converter()
public Converter(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Converter(int ccsid)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Converter(int ccsid,
AS400 system)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String byteArrayToString(byte[] source)
public String byteArrayToString(byte[] source, int offset)
public String byteArrayToString(byte[] source, int offset, int length)
public int getCcsid()
public String getEncoding()
public byte[] stringToByteArray(String source)
public void stringToByteArray(String source, byte[] destination) throws CharConversionException
CharConversionExceptionpublic void stringToByteArray(String source, byte[] destination, int offset) throws CharConversionException
CharConversionExceptionpublic void stringToByteArray(String source, byte[] destination, int offset, int length) throws CharConversionException
CharConversionExceptionpublic byte[] charArrayToByteArray(char[] source)
public void charArrayToByteArray(char[] source,
byte[] destination)
throws CharConversionException
CharConversionExceptionpublic void charArrayToByteArray(char[] source,
byte[] destination,
int offset)
throws CharConversionException
CharConversionExceptionpublic void charArrayToByteArray(char[] source,
byte[] destination,
int offset,
int length)
throws CharConversionException
CharConversionExceptionpublic char[] byteArrayToCharArray(byte[] source,
int offset,
int length)
Copyright © 2024. All rights reserved.