KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > ftp > client > FTPListItem


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  */

19 package org.openharmonise.ftp.client;
20
21 /**
22  * @author Matthew Large
23  *
24  */

25 public class FTPListItem {
26
27     private String JavaDoc m_sFileName = null;
28     private String JavaDoc m_sDate = null;
29     private boolean m_bDirectory = false;
30     private int m_nSize = -1;
31     
32     /**
33      *
34      */

35     public FTPListItem() {
36         super();
37     }
38
39
40     /**
41      * @return
42      */

43     public boolean isDirectory() {
44         return m_bDirectory;
45     }
46
47     /**
48      * @return
49      */

50     public String JavaDoc getDate() {
51         return m_sDate;
52     }
53
54     /**
55      * @return
56      */

57     public String JavaDoc getFileName() {
58         return m_sFileName;
59     }
60
61     /**
62      * @param b
63      */

64     public void setIsDirectory(boolean b) {
65         m_bDirectory = b;
66     }
67
68     /**
69      * @param string
70      */

71     public void setDate(String JavaDoc string) {
72         m_sDate = string;
73     }
74
75     /**
76      * @param string
77      */

78     public void setFileName(String JavaDoc string) {
79         m_sFileName = string;
80     }
81
82     /**
83      * @return
84      */

85     public int getSize() {
86         return m_nSize;
87     }
88
89     /**
90      * @param i
91      */

92     public void setSize(int i) {
93         m_nSize = i;
94     }
95     
96     public String JavaDoc toString() {
97         return "N:" + this.getFileName() + " S:" + this.getSize() + " D:" + this.getDate() + " isDir:" + this.isDirectory();
98     }
99
100 }
101
Popular Tags