01: /**
02: *
03: * Java FTP client library.
04: *
05: * Copyright (C) 2000-2003 Enterprise Distributed Technologies Ltd
06: *
07: * www.enterprisedt.com
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2.1 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library; if not, write to the Free Software
21: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22: *
23: * Bug fixes, suggestions and comments should be sent to bruce@enterprisedt.com
24: *
25: * Change Log:
26: *
27: * $Log: FTPTransferType.java,v $
28: * Revision 1.1.1.1 2005/06/23 15:22:58 smontoro
29: * hipergate backend
30: *
31: * Revision 1.1 2004/02/07 03:15:20 hipergate
32: * v2.0 pre-alpha
33: *
34: * Revision 1.4 2002/11/19 22:01:25 bruceb
35: * changes for 1.2
36: *
37: * Revision 1.3 2001/10/09 20:54:08 bruceb
38: * No change
39: *
40: * Revision 1.1 2001/10/05 14:42:04 bruceb
41: * moved from old project
42: *
43: *
44: */package com.enterprisedt.net.ftp;
45:
46: /**
47: * Enumerates the transfer types possible. We
48: * support only the two common types, ASCII and
49: * Image (often called binary).
50: *
51: * @author Bruce Blackshaw
52: * @version $Revision: 1.1.1.1 $
53: *
54: */
55: public class FTPTransferType {
56:
57: /**
58: * Revision control id
59: */
60: private static String cvsId = "@(#)$Id: FTPTransferType.java,v 1.1.1.1 2005/06/23 15:22:58 smontoro Exp $";
61:
62: /**
63: * Represents ASCII transfer type
64: */
65: public static FTPTransferType ASCII = new FTPTransferType();
66:
67: /**
68: * Represents Image (or binary) transfer type
69: */
70: public static FTPTransferType BINARY = new FTPTransferType();
71:
72: /**
73: * The char sent to the server to set ASCII
74: */
75: static String ASCII_CHAR = "A";
76:
77: /**
78: * The char sent to the server to set BINARY
79: */
80: static String BINARY_CHAR = "I";
81:
82: /**
83: * Private so no-one else can instantiate this class
84: */
85: private FTPTransferType() {
86: }
87: }
|