goldengate.ftp.core.command
Class FtpArgumentCode

java.lang.Object
  extended by goldengate.ftp.core.command.FtpArgumentCode

public class FtpArgumentCode
extends Object

Definition of all Argument of Parameter commands (MODE, STRU, TYPE)

Author:
Frederic Bregier

Nested Class Summary
static class FtpArgumentCode.TransferMode
          Mode of transmission
static class FtpArgumentCode.TransferStructure
          Structure of transmission
static class FtpArgumentCode.TransferSubType
          SubType of transmission
static class FtpArgumentCode.TransferType
          Type of transmission
 
Constructor Summary
FtpArgumentCode()
           
 
Method Summary
static FtpArgumentCode.TransferMode getTransferMode(char mode)
          Get the TransferMode according to the char
static FtpArgumentCode.TransferStructure getTransferStructure(char structure)
          Get the TransferStructure according to the char
static FtpArgumentCode.TransferSubType getTransferSubType(char subType)
          Get the TransferSubType according to the char
static FtpArgumentCode.TransferType getTransferType(char type)
          Get the TransferType according to the char
static void main(String[] args)
          List all charsets supported by the current platform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpArgumentCode

public FtpArgumentCode()
Method Detail

getTransferType

public static FtpArgumentCode.TransferType getTransferType(char type)
                                                    throws goldengate.common.exception.InvalidArgumentException
Get the TransferType according to the char

Parameters:
type -
Returns:
the corresponding TransferType
Throws:
goldengate.common.exception.InvalidArgumentException - if the type is unknown

getTransferSubType

public static FtpArgumentCode.TransferSubType getTransferSubType(char subType)
                                                          throws goldengate.common.exception.InvalidArgumentException
Get the TransferSubType according to the char

Parameters:
subType -
Returns:
the corresponding TransferSubType
Throws:
goldengate.common.exception.InvalidArgumentException - if the TransferSubType is unknown

getTransferStructure

public static FtpArgumentCode.TransferStructure getTransferStructure(char structure)
                                                              throws goldengate.common.exception.InvalidArgumentException
Get the TransferStructure according to the char

Parameters:
structure -
Returns:
the corresponding TransferStructure
Throws:
goldengate.common.exception.InvalidArgumentException - if the TransferStructure is unknown

getTransferMode

public static FtpArgumentCode.TransferMode getTransferMode(char mode)
                                                    throws goldengate.common.exception.InvalidArgumentException
Get the TransferMode according to the char

Parameters:
mode -
Returns:
the corresponding TransferMode
Throws:
goldengate.common.exception.InvalidArgumentException - if the TransferMode is unknown

main

public static void main(String[] args)
List all charsets supported by the current platform

Parameters:
args -


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.