001: /*
002: * The contents of this file are subject to the
003: * Mozilla Public License Version 1.1 (the "License");
004: * you may not use this file except in compliance with the License.
005: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
006: *
007: * Software distributed under the License is distributed on an "AS IS"
008: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
009: * See the License for the specific language governing rights and
010: * limitations under the License.
011: *
012: * The Initial Developer of the Original Code is Simulacra Media Ltd.
013: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
014: *
015: * All Rights Reserved.
016: *
017: * Contributor(s):
018: */
019: package org.openharmonise.ftp.client;
020:
021: /**
022: * @author Matthew Large
023: *
024: */
025: public class FTPListItem {
026:
027: private String m_sFileName = null;
028: private String m_sDate = null;
029: private boolean m_bDirectory = false;
030: private int m_nSize = -1;
031:
032: /**
033: *
034: */
035: public FTPListItem() {
036: super ();
037: }
038:
039: /**
040: * @return
041: */
042: public boolean isDirectory() {
043: return m_bDirectory;
044: }
045:
046: /**
047: * @return
048: */
049: public String getDate() {
050: return m_sDate;
051: }
052:
053: /**
054: * @return
055: */
056: public String getFileName() {
057: return m_sFileName;
058: }
059:
060: /**
061: * @param b
062: */
063: public void setIsDirectory(boolean b) {
064: m_bDirectory = b;
065: }
066:
067: /**
068: * @param string
069: */
070: public void setDate(String string) {
071: m_sDate = string;
072: }
073:
074: /**
075: * @param string
076: */
077: public void setFileName(String string) {
078: m_sFileName = string;
079: }
080:
081: /**
082: * @return
083: */
084: public int getSize() {
085: return m_nSize;
086: }
087:
088: /**
089: * @param i
090: */
091: public void setSize(int i) {
092: m_nSize = i;
093: }
094:
095: public String toString() {
096: return "N:" + this .getFileName() + " S:" + this .getSize()
097: + " D:" + this .getDate() + " isDir:"
098: + this.isDirectory();
099: }
100:
101: }
|