public class CodepageMapper extends Object
See the se.entra.phantom.server.codepage
package for
supported code pages.
CodepageConverter
Constructor and Description |
---|
CodepageMapper() |
Modifier and Type | Method and Description |
---|---|
static char |
convertAnsiToChar(byte b)
Converts a single Ansi byte to character.
|
static char[] |
convertAnsiToChar(byte[] b)
Converts an array of Ansi bytes to an array of characters.
|
static String |
convertAnsiToString(byte[] b)
Converts an array of Ansi bytes to a string.
|
static String |
convertAnsiToString(byte[] b,
int offset,
int length)
Converts an array of Ansi bytes to a string.
|
static char |
convertASCIIToChar(byte b)
Converts a single ASCII byte to character.
|
static char[] |
convertASCIIToChar(byte[] b)
Converts an array of ASCII bytes to an array of characters.
|
static String |
convertASCIIToString(byte[] b)
Converts an array of ASCII bytes to a string.
|
static String |
convertASCIIToString(byte[] b,
int offset,
int length)
Converts an array of ASCII bytes to a string.
|
static byte |
convertCharToAnsi(char c)
Converts a single character to Ansi byte.
|
static byte[] |
convertCharToAnsi(char[] c)
Converts an array of characters to an array of Ansi bytes.
|
static byte |
convertCharToASCII(char c)
Converts a single character to ASCII byte.
|
static byte[] |
convertCharToASCII(char[] c)
Converts an array of characters to an array of ASCII bytes.
|
static byte |
convertCharToEBCDIC(char c)
Converts a single character to EBCDIC byte.
|
static byte[] |
convertCharToEBCDIC(char[] c)
Converts an array of characters to an array of EBCDIC bytes.
|
static char |
convertEBCDICToChar(byte b)
Converts a single EBCDIC byte to character.
|
static char[] |
convertEBCDICToChar(byte[] b)
Converts an array of EBCDIC bytes to an array of characters.
|
static String |
convertEBCDICToString(byte[] b)
Converts an array of EBCDIC bytes to a string.
|
static String |
convertEBCDICToString(byte[] b,
int offset,
int length)
Converts an array of EBCDIC bytes to a string.
|
static byte[] |
convertStringToAnsi(String s)
Converts a string to an array of Ansi bytes.
|
static byte[] |
convertStringToASCII(String s)
Converts a string to an array of ASCII bytes.
|
static byte[] |
convertStringToEBCDIC(String s)
Converts a string to an array of EBCDIC bytes.
|
static CodepageConverter |
createCodepageConverter(String cp)
Creates an instance of a codepage converter class.
|
static CodepageConverter |
getAnsiConverter()
Gets the codepage converter for Ansi.
|
static CodepageConverter |
getASCIIConverter()
Gets the codepage converter for ASCII.
|
static int |
getCurrentEBCDICCodePage()
Gets the current EBCDIC code page value, e.g.
|
static CodepageConverter |
getEBCDICConverter()
Gets the codepage converter for EBCDIC.
|
static boolean |
setAnsi(String cp)
Sets the Ansi codepage.
|
static boolean |
setASCII(String cp)
Sets the ASCII codepage.
|
static boolean |
setEBCDIC(String cp)
Sets the EBCDIC codepage.
|
public static CodepageConverter createCodepageConverter(String cp)
public static boolean setAnsi(String cp)
public static boolean setASCII(String cp)
public static boolean setEBCDIC(String cp)
public static final CodepageConverter getASCIIConverter()
public static final CodepageConverter getAnsiConverter()
public static final CodepageConverter getEBCDICConverter()
public static char convertAnsiToChar(byte b)
public static char[] convertAnsiToChar(byte[] b)
public static byte convertCharToAnsi(char c)
public static byte[] convertCharToAnsi(char[] c)
public static String convertAnsiToString(byte[] b)
public static String convertAnsiToString(byte[] b, int offset, int length)
public static byte[] convertStringToAnsi(String s)
public static char convertASCIIToChar(byte b)
public static char[] convertASCIIToChar(byte[] b)
public static byte convertCharToASCII(char c)
public static byte[] convertCharToASCII(char[] c)
public static String convertASCIIToString(byte[] b)
public static String convertASCIIToString(byte[] b, int offset, int length)
public static byte[] convertStringToASCII(String s)
public static char convertEBCDICToChar(byte b)
public static char[] convertEBCDICToChar(byte[] b)
public static byte convertCharToEBCDIC(char c)
public static byte[] convertCharToEBCDIC(char[] c)
public static String convertEBCDICToString(byte[] b)
public static String convertEBCDICToString(byte[] b, int offset, int length)
public static byte[] convertStringToEBCDIC(String s)
public static int getCurrentEBCDICCodePage()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.