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

Constructor Summary
FTPResourceItem(java.lang.String path)
           
FTPResourceItem(java.lang.String currentDir, com.enterprisedt.net.ftp.FTPFile file)
           
 
Method Summary
 java.lang.String getFileName()
           
 java.lang.String getFullPath()
           
 java.util.Date getLastModified()
           
 long getSize()
           
 java.lang.Object getSource()
           
 boolean isFile()
           
 boolean isLocked()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPResourceItem

public FTPResourceItem(java.lang.String currentDir,
                       com.enterprisedt.net.ftp.FTPFile file)

FTPResourceItem

public FTPResourceItem(java.lang.String path)
Method Detail

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