Package org.tn5250j.encoding.builtin
Class CodepageConverterAdapter
- java.lang.Object
-
- org.tn5250j.encoding.builtin.CodepageConverterAdapter
-
- All Implemented Interfaces:
ICodepageConverter,ICodePage
- Direct Known Subclasses:
CCSID1025,CCSID1026,CCSID1112,CCSID1140,CCSID1141,CCSID1147,CCSID1148,CCSID273,CCSID277,CCSID278,CCSID280,CCSID284,CCSID285,CCSID297,CCSID37,CCSID424,CCSID500,CCSID870,CCSID871,CCSID875
public abstract class CodepageConverterAdapter extends java.lang.Object implements ICodepageConverter
Adapter class for converters using 8bit codepages.- Author:
- master_jaf
-
-
Constructor Summary
Constructors Constructor Description CodepageConverterAdapter()
-
Method Summary
Modifier and Type Method Description charebcdic2uni(int index)Convert a single byte (or maybe more bytes which representing one character) to a Unicode character.protected abstract char[]getCodePage()ICodepageConverterinit()Does special initialization stuff for this converter.byteuni2ebcdic(char index)Convert a Unicode character in it's byte representation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tn5250j.encoding.builtin.ICodepageConverter
getDescription, getName
-
-
-
-
Method Detail
-
init
public ICodepageConverter init()
Description copied from interface:ICodepageConverterDoes special initialization stuff for this converter.- Specified by:
initin interfaceICodepageConverter- Returns:
- a converter
-
uni2ebcdic
public byte uni2ebcdic(char index)
Description copied from interface:ICodePageConvert a Unicode character in it's byte representation. Therefore, only 8bit codepages are supported.- Specified by:
uni2ebcdicin interfaceICodePage- Parameters:
index- a character- Returns:
- a byte
-
ebcdic2uni
public char ebcdic2uni(int index)
Description copied from interface:ICodePageConvert a single byte (or maybe more bytes which representing one character) to a Unicode character.- Specified by:
ebcdic2uniin interfaceICodePage- Parameters:
index- a byte- Returns:
- a character
-
getCodePage
protected abstract char[] getCodePage()
- Returns:
- The oringal 8bit codepage.
-
-