com.github.goldin.org.apache.tools.ant.taskdefs.optional.net
Class FTP.FTPFileProxy

java.lang.Object
  extended by java.io.File
      extended by com.github.goldin.org.apache.tools.ant.taskdefs.optional.net.FTP.FTPFileProxy
All Implemented Interfaces:
Serializable, Comparable<File>
Enclosing class:
FTP

protected static class FTP.FTPFileProxy
extends File

internal class providing a File-like interface to some of the information available from the FTP server

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FTP.FTPFileProxy(org.apache.commons.net.ftp.FTPFile file)
          creates a proxy to a FTP file
FTP.FTPFileProxy(String completePath)
          creates a proxy to a FTP directory
 
Method Summary
 boolean exists()
           
 String getAbsolutePath()
           
 String getName()
           
 String getParent()
           
 String getPath()
           
 boolean isAbsolute()
          FTP files are stored as absolute paths
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
          FTP files cannot be hidden
 long lastModified()
           
 long length()
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getCanonicalFile, getCanonicalPath, getFreeSpace, getParentFile, getTotalSpace, getUsableSpace, hashCode, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTP.FTPFileProxy

public FTP.FTPFileProxy(org.apache.commons.net.ftp.FTPFile file)
creates a proxy to a FTP file

Parameters:
file -

FTP.FTPFileProxy

public FTP.FTPFileProxy(String completePath)
creates a proxy to a FTP directory

Parameters:
completePath - the remote directory.
Method Detail

exists

public boolean exists()
Overrides:
exists in class File

getAbsolutePath

public String getAbsolutePath()
Overrides:
getAbsolutePath in class File

getName

public String getName()
Overrides:
getName in class File

getParent

public String getParent()
Overrides:
getParent in class File

getPath

public String getPath()
Overrides:
getPath in class File

isAbsolute

public boolean isAbsolute()
FTP files are stored as absolute paths

Overrides:
isAbsolute in class File
Returns:
true

isDirectory

public boolean isDirectory()
Overrides:
isDirectory in class File

isFile

public boolean isFile()
Overrides:
isFile in class File

isHidden

public boolean isHidden()
FTP files cannot be hidden

Overrides:
isHidden in class File
Returns:
false

lastModified

public long lastModified()
Overrides:
lastModified in class File

length

public long length()
Overrides:
length in class File


Copyright © 2012. All Rights Reserved.