1 19 package org.openharmonise.ftp.client; 20 21 25 public class FTPListItem { 26 27 private String m_sFileName = null; 28 private String m_sDate = null; 29 private boolean m_bDirectory = false; 30 private int m_nSize = -1; 31 32 35 public FTPListItem() { 36 super(); 37 } 38 39 40 43 public boolean isDirectory() { 44 return m_bDirectory; 45 } 46 47 50 public String getDate() { 51 return m_sDate; 52 } 53 54 57 public String getFileName() { 58 return m_sFileName; 59 } 60 61 64 public void setIsDirectory(boolean b) { 65 m_bDirectory = b; 66 } 67 68 71 public void setDate(String string) { 72 m_sDate = string; 73 } 74 75 78 public void setFileName(String string) { 79 m_sFileName = string; 80 } 81 82 85 public int getSize() { 86 return m_nSize; 87 } 88 89 92 public void setSize(int i) { 93 m_nSize = i; 94 } 95 96 public String toString() { 97 return "N:" + this.getFileName() + " S:" + this.getSize() + " D:" + this.getDate() + " isDir:" + this.isDirectory(); 98 } 99 100 } 101 | Popular Tags |