public class CodepageConverter extends Object
CodepageMapper| Constructor and Description |
|---|
CodepageConverter(int[] map, String codepageName)Creates an instance and sets the available codepage. |
| Modifier and Type | Method and Description |
|---|---|
char | convertByteToChar(byte b)Converts a single byte to character. |
char[] | convertByteToChar(byte[] b)Converts an array of bytes to an array of characters. |
char[] | convertByteToChar(byte[] b, int offset, int length)Converts an array of bytes to an array of characters. |
String | convertByteToString(byte[] b)Converts an array of bytes to a string. |
String | convertByteToString(byte[] b, int offset, int length)Converts an array of bytes to a string. |
byte | convertCharToByte(char c)Converts a single character to byte. |
byte[] | convertCharToByte(char[] c)Converts an array of characters to an array of bytes. |
byte[] | convertStringToByte(String s)Converts a string to an array of bytes. |
static CodepageConverter | createCodepageConverter(int[] map)Creates an instance and sets the available codepage. |
static CodepageConverter | createCodepageConverter(int[] map, String codepageName)Creates an instance and sets the available codepage. |
static CodepageConverter | createCodepageConverter(String codepageName)Creates an instance of a codepage short name. |
String | getCodePage()Gets the current codepage short name. |
int | getCodePageValue()Gets the current (EBCDIC) code page value, e.g. |
public CodepageConverter(int[] map,
String codepageName)public static CodepageConverter createCodepageConverter(int[] map)
public static CodepageConverter createCodepageConverter(int[] map, String codepageName)
public static CodepageConverter createCodepageConverter(String codepageName)
CodepageMapInterface class in the package se.entra.phantom.server.codepage.public String getCodePage()
public int getCodePageValue()
public char convertByteToChar(byte b)
public char[] convertByteToChar(byte[] b)
public char[] convertByteToChar(byte[] b,
int offset,
int length)public String convertByteToString(byte[] b)
public String convertByteToString(byte[] b, int offset, int length)
public byte convertCharToByte(char c)
public byte[] convertCharToByte(char[] c)
public byte[] convertStringToByte(String s)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.