com.ibm.as400.access

Class NLSTableDownload

  • java.lang.Object
    • com.ibm.as400.access.NLSTableDownload


  • public class NLSTableDownload
    extends java.lang.Object
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void connect()
      connect to the previously set server.
      void disconnect()
      Disconnect from the host server.
      char[] download(int fromCCSID, int toCCSID, boolean doubleByteFrom) 
      char[] download(int fromCCSID, int toCCSID, int fromType)
      Download table
      • Methods inherited from class java.lang.Object

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

      • NLSTableDownload

        public NLSTableDownload(AS400ImplRemote system)
        Parameters:
        system - The server to execute the program.
    • Method Detail

      • disconnect

        public void disconnect()
        Disconnect from the host server.
      • download

        public char[] download(int fromCCSID,
                      int toCCSID,
                      boolean doubleByteFrom)
                        throws ConnectionDroppedException,
                               java.io.IOException,
                               java.lang.InterruptedException
        Throws:
        ConnectionDroppedException
        java.io.IOException
        java.lang.InterruptedException
      • download

        public char[] download(int fromCCSID,
                      int toCCSID,
                      int fromType)
                        throws ConnectionDroppedException,
                               java.io.IOException,
                               java.lang.InterruptedException
        Download table
        Parameters:
        fromCCSID - the ccsid to translate from
        toCCSID - the ccsid to traslate to
        fromType - the type of the from CCSID, i.e. DOUBLE_TYPE_FROM_CCSID, etc..
        Returns:
        table as character array
        Throws:
        ConnectionDroppedException - If the connection is dropped.
        java.io.IOException - If an error occurs while communicating with the system.
        java.lang.InterruptedException - If this thread is interrupted.