public class TextDecoder extends SMYLDObject
| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_ASCII
ASCII Code
|
static int |
CODE_ASCII_NIBBLE
ASCII NIBBLE code
|
static int |
CODE_BCD
BCD code
|
static int |
CODE_BINARY
Binary code
|
static int |
CODE_EBCDIC
EBCDIC code
|
NEW_LINE, OS_NEW_LINE| Constructor and Description |
|---|
TextDecoder() |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(byte[] encodedBytes,
int TextCode) |
String |
decode(File EncodedTextFile,
int TextCode)
Will convert the given encoded text passed as string into ASCII code,
according to the gievn code.
|
String |
decode(String EncodedText,
int TextCode)
Will convert the given encoded text passed as string into ASCII code,
according to the gievn code.
|
static String |
getCodecText(int textCode)
Returns the text identical to the given text code which is passed as
integer
|
boolean |
supportsCode(int codeSupported)
This methode will check if the given code is supported or not.
|
debug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic static final int CODE_EBCDIC
public static final int CODE_BCD
public static final int CODE_ASCII
public static final int CODE_BINARY
public static final int CODE_ASCII_NIBBLE
public String decode(String EncodedText, int TextCode)
encodedText - the encoded textTextCode - code of text passedpublic String decode(byte[] encodedBytes, int TextCode)
public String decode(File EncodedTextFile, int TextCode)
encodedText - the encoded textTextCode - code of text passedpublic static String getCodecText(int textCode)
textCode - the code passed as integerpublic boolean supportsCode(int codeSupported)
codeSupported - the code to testCopyright © 2019 com.github.mfjamil. All rights reserved.