Class CodepageConverterAdapter

    • Method Summary

      Modifier and Type Method Description
      char ebcdic2uni​(int index)
      Convert a single byte (or maybe more bytes which representing one character) to a Unicode character.
      protected abstract char[] getCodePage()  
      ICodepageConverter init()
      Does special initialization stuff for this converter.
      byte uni2ebcdic​(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
    • Constructor Detail

      • CodepageConverterAdapter

        public CodepageConverterAdapter()
    • Method Detail

      • uni2ebcdic

        public byte uni2ebcdic​(char index)
        Description copied from interface: ICodePage
        Convert a Unicode character in it's byte representation. Therefore, only 8bit codepages are supported.
        Specified by:
        uni2ebcdic in interface ICodePage
        Parameters:
        index - a character
        Returns:
        a byte
      • ebcdic2uni

        public char ebcdic2uni​(int index)
        Description copied from interface: ICodePage
        Convert a single byte (or maybe more bytes which representing one character) to a Unicode character.
        Specified by:
        ebcdic2uni in interface ICodePage
        Parameters:
        index - a byte
        Returns:
        a character
      • getCodePage

        protected abstract char[] getCodePage()
        Returns:
        The oringal 8bit codepage.