Class CanBeAnythingFile

java.lang.Object
org.genesys.filerepository.service.ftp.CanBeAnythingFile
All Implemented Interfaces:
org.apache.ftpserver.ftplet.FtpFile

public abstract class CanBeAnythingFile extends Object implements org.apache.ftpserver.ftplet.FtpFile
The Class CanBeAnythingFile.
  • Field Details

    • dir

      protected boolean dir
      The dir.
  • Constructor Details

    • CanBeAnythingFile

      public CanBeAnythingFile(Path parent, String name)
      Instantiates a new can be anything file.
      Parameters:
      parent - the parent
      name - the name
  • Method Details

    • getAbsolutePath

      public String getAbsolutePath()
      Specified by:
      getAbsolutePath in interface org.apache.ftpserver.ftplet.FtpFile
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.ftpserver.ftplet.FtpFile
    • isHidden

      public boolean isHidden()
      Specified by:
      isHidden in interface org.apache.ftpserver.ftplet.FtpFile
    • isDirectory

      public boolean isDirectory()
      Specified by:
      isDirectory in interface org.apache.ftpserver.ftplet.FtpFile
    • isFile

      public boolean isFile()
      Specified by:
      isFile in interface org.apache.ftpserver.ftplet.FtpFile
    • doesExist

      public boolean doesExist()
      Specified by:
      doesExist in interface org.apache.ftpserver.ftplet.FtpFile
    • isReadable

      public boolean isReadable()
      Specified by:
      isReadable in interface org.apache.ftpserver.ftplet.FtpFile
    • isWritable

      public boolean isWritable()
      Specified by:
      isWritable in interface org.apache.ftpserver.ftplet.FtpFile
    • isRemovable

      public boolean isRemovable()
      Specified by:
      isRemovable in interface org.apache.ftpserver.ftplet.FtpFile
    • getOwnerName

      public String getOwnerName()
      Specified by:
      getOwnerName in interface org.apache.ftpserver.ftplet.FtpFile
    • getGroupName

      public String getGroupName()
      Specified by:
      getGroupName in interface org.apache.ftpserver.ftplet.FtpFile
    • getLinkCount

      public int getLinkCount()
      Specified by:
      getLinkCount in interface org.apache.ftpserver.ftplet.FtpFile
    • getLastModified

      public long getLastModified()
      Specified by:
      getLastModified in interface org.apache.ftpserver.ftplet.FtpFile
    • setLastModified

      public boolean setLastModified(long time)
      Specified by:
      setLastModified in interface org.apache.ftpserver.ftplet.FtpFile
    • getSize

      public long getSize()
      Specified by:
      getSize in interface org.apache.ftpserver.ftplet.FtpFile
    • getPhysicalFile

      public Object getPhysicalFile()
      Specified by:
      getPhysicalFile in interface org.apache.ftpserver.ftplet.FtpFile
    • mkdir

      public abstract boolean mkdir()
      Specified by:
      mkdir in interface org.apache.ftpserver.ftplet.FtpFile
    • delete

      public abstract boolean delete()
      Specified by:
      delete in interface org.apache.ftpserver.ftplet.FtpFile
    • move

      public boolean move(org.apache.ftpserver.ftplet.FtpFile destination)
      Specified by:
      move in interface org.apache.ftpserver.ftplet.FtpFile
    • listFiles

      public List<? extends org.apache.ftpserver.ftplet.FtpFile> listFiles()
      Specified by:
      listFiles in interface org.apache.ftpserver.ftplet.FtpFile
    • createOutputStream

      public abstract OutputStream createOutputStream(long offset) throws IOException
      Specified by:
      createOutputStream in interface org.apache.ftpserver.ftplet.FtpFile
      Throws:
      IOException
    • createInputStream

      public InputStream createInputStream(long offset) throws IOException
      Specified by:
      createInputStream in interface org.apache.ftpserver.ftplet.FtpFile
      Throws:
      IOException