Package org.apache.tools.ant.taskdefs.optional.net

# Class FTPTaskMirrorImpl.FTPFileProxy

java.lang.Object
java.io.File
org.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPFileProxy

All Implemented Interfaces:
  `Serializable`, `Comparable<File>`

Enclosing class:
  FTPTaskMirrorImpl

protected static class FTPTaskMirrorImpl.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

  Constructors
  Constructor
  Description
  `FTPFileProxy(String completePath)`
  creates a proxy to a FTP directory
  `FTPFileProxy(org.apache.commons.net.ftp.FTPFile file)`
  creates a proxy to a FTP file

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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, toPath, toString, toURI, toURL`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### FTPFileProxy

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

  - ### FTPFileProxy

    public FTPFileProxy(String completePath)
    creates a proxy to a FTP directory
    Parameters:
      `completePath` - the remote directory.

- ## Method Details

  - ### 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`