Save This Page
Home » edtftpj » com.enterprisedt.net.ftp » [javadoc | source]
    1   /**
    2    *  Copyright (C) 2000 Enterprise Distributed Technologies Ltd.
    3    *
    4    *
    5    *  Change Log:
    6    *
    7    *        $Log: FTPTransferType.java,v $
    8    *        Revision 1.3  2001/10/09 20:54:08  bruceb
    9    *        No change
   10    *
   11    *        Revision 1.1  2001/10/05 14:42:04  bruceb
   12    *        moved from old project
   13    *
   14    *
   15    */
   16   
   17   package com.enterprisedt.net.ftp;
   18   
   19   /**
   20    *  Enumerates the transfer types possible. We
   21    *  support only the two common types, ASCII and
   22    *  Image (often called binary).
   23    *
   24    *  @author             Bruce Blackshaw
   25    *  @version        $Revision: 1.3 $
   26    *
   27    */
   28    public class FTPTransferType {
   29   
   30        /**
   31         *  Revision control id
   32         */
   33        private static String cvsId = "$Id: FTPTransferType.java,v 1.3 2001/10/09 20:54:08 bruceb Exp $";
   34   
   35        /**
   36         *   Represents ASCII transfer type
   37         */
   38        public static FTPTransferType ASCII = new FTPTransferType();
   39   
   40        /**
   41         *   Represents Image (or binary) transfer type
   42         */
   43        public static FTPTransferType BINARY = new FTPTransferType();
   44   
   45        /**
   46         *   The char sent to the server to set ASCII
   47         */
   48        static String ASCII_CHAR = "A";
   49   
   50        /**
   51         *   The char sent to the server to set BINARY
   52         */
   53        static String BINARY_CHAR = "I";
   54   
   55        /**
   56         *  Private so no-one else can instantiate this class
   57         */
   58        private FTPTransferType() {
   59        }
   60    }

Save This Page
Home » edtftpj » com.enterprisedt.net.ftp » [javadoc | source]