Serializable
public 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
UnsupportedEncodingException
public Converter(int ccsid) throws UnsupportedEncodingException
UnsupportedEncodingException
public Converter(int ccsid, AS400 system) throws UnsupportedEncodingException
UnsupportedEncodingException
public 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
CharConversionException
public void stringToByteArray(String source, byte[] destination, int offset) throws CharConversionException
CharConversionException
public void stringToByteArray(String source, byte[] destination, int offset, int length) throws CharConversionException
CharConversionException
public byte[] charArrayToByteArray(char[] source)
public void charArrayToByteArray(char[] source, byte[] destination) throws CharConversionException
CharConversionException
public void charArrayToByteArray(char[] source, byte[] destination, int offset) throws CharConversionException
CharConversionException
public void charArrayToByteArray(char[] source, byte[] destination, int offset, int length) throws CharConversionException
CharConversionException
public char[] byteArrayToCharArray(byte[] source, int offset, int length)
Copyright © 2025. All rights reserved.