com.ibm.jtopenlite.ccsidConversion

Class CcsidConversion

  • java.lang.Object
    • com.ibm.jtopenlite.ccsidConversion.CcsidConversion


  • public class CcsidConversion
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      CcsidConversion() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String createString(byte[] data, int offset, int length, int ccsid) 
      static SingleByteConversion getSingleByteConversion(int ccsid) 
      static int stringToEBCDICByteArray(java.lang.String s, byte[] data, int offset, int ccsidToUse) 
      static byte[] stringToEBCDICByteArray(java.lang.String s, int ccsidToUse) 
      static int stringToEBCDICByteArray(java.lang.String s, int length, byte[] data, int offset, int ccsidToUse) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CcsidConversion

        public CcsidConversion()
    • Method Detail

      • getSingleByteConversion

        public static SingleByteConversion getSingleByteConversion(int ccsid)
                                                            throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • createString

        public static java.lang.String createString(byte[] data,
                                    int offset,
                                    int length,
                                    int ccsid)
                                             throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • stringToEBCDICByteArray

        public static byte[] stringToEBCDICByteArray(java.lang.String s,
                                     int ccsidToUse)
                                              throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • stringToEBCDICByteArray

        public static int stringToEBCDICByteArray(java.lang.String s,
                                  byte[] data,
                                  int offset,
                                  int ccsidToUse)
                                           throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • stringToEBCDICByteArray

        public static int stringToEBCDICByteArray(java.lang.String s,
                                  int length,
                                  byte[] data,
                                  int offset,
                                  int ccsidToUse)
                                           throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException