Package com.logicaldoc.ftp
Class LogicalFtpFile
java.lang.Object
com.logicaldoc.ftp.LogicalFtpFile
- All Implemented Interfaces:
org.apache.ftpserver.ftplet.FtpFile
Our own implementation of a FTP File
- Since:
- 8.0
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalFtpFile(com.logicaldoc.core.document.Document document, FtpUser user) LogicalFtpFile(com.logicaldoc.core.folder.Folder folder, FtpUser user) -
Method Summary
Modifier and TypeMethodDescriptioncreateInputStream(long offset) createOutputStream(long offset) booleandelete()booleancom.logicaldoc.core.document.Documentcom.logicaldoc.core.folder.FolderlongintgetName()getPath()longgetSize()getUser()booleanbooleanisFile()booleanisHidden()booleanbooleanbooleanList<? extends org.apache.ftpserver.ftplet.FtpFile> booleanmkdir()booleanmove(org.apache.ftpserver.ftplet.FtpFile toFile) booleansetLastModified(long lastModified) voidtoString()
-
Constructor Details
-
LogicalFtpFile
public LogicalFtpFile(com.logicaldoc.core.document.Document document, FtpUser user) throws com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.PersistenceException
-
LogicalFtpFile
-
-
Method Details
-
getPath
-
setPath
-
getFolder
public com.logicaldoc.core.folder.Folder getFolder() -
getDocument
public com.logicaldoc.core.document.Document getDocument() -
createInputStream
- Specified by:
createInputStreamin interfaceorg.apache.ftpserver.ftplet.FtpFile- Throws:
IOException
-
createOutputStream
- Specified by:
createOutputStreamin interfaceorg.apache.ftpserver.ftplet.FtpFile- Throws:
IOException
-
delete
public boolean delete()- Specified by:
deletein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
doesExist
public boolean doesExist()- Specified by:
doesExistin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getGroupName
- Specified by:
getGroupNamein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getLinkCount
public int getLinkCount()- Specified by:
getLinkCountin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getName
- Specified by:
getNamein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getOwnerName
- Specified by:
getOwnerNamein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getPhysicalFile
- Specified by:
getPhysicalFilein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getSize
public long getSize()- Specified by:
getSizein 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
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isRemovable
public boolean isRemovable()- Specified by:
isRemovablein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
listFiles
- Specified by:
listFilesin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
mkdir
public boolean mkdir()- Specified by:
mkdirin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
move
public boolean move(org.apache.ftpserver.ftplet.FtpFile toFile) - Specified by:
movein interfaceorg.apache.ftpserver.ftplet.FtpFile
-
setLastModified
public boolean setLastModified(long lastModified) - Specified by:
setLastModifiedin interfaceorg.apache.ftpserver.ftplet.FtpFile
-
getUser
-
toString
-