com.japisoft.ftpbrowser
Class FTPResourceItem
java.lang.Object
|
+--com.japisoft.ftpbrowser.FTPResourceItem
- All Implemented Interfaces:
- ResourceItem
- public class FTPResourceItem
- extends java.lang.Object
- implements ResourceItem
- Version:
- 1.0
- Author:
- (c) 2004 JAPISoft / http://www.japisoft.com
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FTPResourceItem
public FTPResourceItem(java.lang.String currentDir,
com.enterprisedt.net.ftp.FTPFile file)
FTPResourceItem
public FTPResourceItem(java.lang.String path)
getFullPath
public java.lang.String getFullPath()
- Specified by:
getFullPath in interface ResourceItem
- Returns:
- the full path of the resource including the file name
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName in interface ResourceItem
- Returns:
- the name of the resource like the file name
isFile
public boolean isFile()
- Specified by:
isFile in interface ResourceItem
- Returns:
true if this resource is a file and false for a directory
isLocked
public boolean isLocked()
- Specified by:
isLocked in interface ResourceItem
- Returns:
true if the resource cannot be written
getSize
public long getSize()
- Specified by:
getSize in interface ResourceItem
- Returns:
- the size of the resource in bytes
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified in interface ResourceItem
- Returns:
- the last modified date
getSource
public java.lang.Object getSource()
- Specified by:
getSource in interface ResourceItem
- Returns:
- the source of the item. Rather for inner usage