Class RepositoryFtpDirectory
java.lang.Object
org.genesys.filerepository.service.ftp.RepositoryFtpDirectory
- All Implemented Interfaces:
org.apache.ftpserver.ftplet.FtpFile
public abstract class RepositoryFtpDirectory
extends Object
implements org.apache.ftpserver.ftplet.FtpFile
RepositoryFtpDirectory wraps repository paths.-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryFtpDirectory(Path path) Instantiates a new repository ftp directory. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanChange working directory.createInputStream(long offset) createOutputStream(long offset) protected voidCwd.abstract booleandelete()booleanbooleanabstract StringlongintgetName()abstract StringlonggetSize()inthashCode()booleanbooleanisFile()booleanisHidden()booleanbooleanbooleanabstract List<? extends org.apache.ftpserver.ftplet.FtpFile>abstract booleanmkdir()abstract booleanmove(org.apache.ftpserver.ftplet.FtpFile destination) booleansetLastModified(long time)
-
Constructor Details
-
RepositoryFtpDirectory
Instantiates a new repository ftp directory.- Parameters:
path- the path
-
-
Method Details
-
cwd
Cwd.- Parameters:
path- the path
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getName
- Specified by:
getNamein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isFile
public boolean isFile()- Specified by:
isFilein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
doesExist
public boolean doesExist()- Specified by:
doesExistin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isRemovable
public boolean isRemovable()- Specified by:
isRemovablein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getOwnerName
- Specified by:
getOwnerNamein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getGroupName
- Specified by:
getGroupNamein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getLinkCount
public int getLinkCount()- Specified by:
getLinkCountin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
setLastModified
public boolean setLastModified(long time) - Specified by:
setLastModifiedin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getSize
public long getSize()- Specified by:
getSizein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getPhysicalFile
- Specified by:
getPhysicalFilein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
mkdir
public abstract boolean mkdir()- Specified by:
mkdirin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
delete
public abstract boolean delete()- Specified by:
deletein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
move
public abstract boolean move(org.apache.ftpserver.ftplet.FtpFile destination) - Specified by:
movein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
listFiles
- Specified by:
listFilesin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
createOutputStream
- Specified by:
createOutputStreamin interfaceorg.apache.ftpserver.ftplet.FtpFile- Throws:
IOException
-
createInputStream
- Specified by:
createInputStreamin interfaceorg.apache.ftpserver.ftplet.FtpFile- Throws:
IOException
-
changeWorkingDirectory
Change working directory.- Parameters:
dir- the dir- Returns:
- true, if successful
-
hashCode
public int hashCode() -
equals
-