Secure FTP Factory

com.jscape.filetransfer
Class FileTransferRemoteFile

java.lang.Object
  extended bycom.jscape.filetransfer.FileTransferRemoteFile

public class FileTransferRemoteFile
extends java.lang.Object

Represents a file returned in a remote directory listing.


Constructor Summary
FileTransferRemoteFile()
           
 
Method Summary
 java.util.Date getFileDate()
          Gets the last modified date file.
 java.lang.String getFilename()
          Gets filename.
 long getFilesize()
          Gets filesize.
 java.lang.String getLinkTarget()
          Gets target of symbolic link.
 boolean isDirectory()
          Checks if remote file is a directory.
 boolean isHidden()
          Checks if the filename is a hidden filename by checking to see if filename begins with a period.
 boolean isLink()
          Checks if remote files is a symbolic link.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransferRemoteFile

public FileTransferRemoteFile()
Method Detail

isDirectory

public boolean isDirectory()
Checks if remote file is a directory.

Returns:
true if is a directory, false otherwise

getFilename

public java.lang.String getFilename()
Gets filename.

Returns:
filename

getFilesize

public long getFilesize()
Gets filesize.

Returns:
filesize in bytes

isLink

public boolean isLink()
Checks if remote files is a symbolic link.

Returns:
true if symbolic link, false otherwise

getLinkTarget

public java.lang.String getLinkTarget()
Gets target of symbolic link.

Returns:
path or null if not a symbolic link

isHidden

public boolean isHidden()
Checks if the filename is a hidden filename by checking to see if filename begins with a period.

Returns:
true if hidden, false otherwise

getFileDate

public java.util.Date getFileDate()
Gets the last modified date file.

Returns:
Returns the last modified date

Secure FTP Factory

Copyright JSCAPE 1999-2007 All Rights Reserved