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 SummaryConstructorsConstructorDescriptionLogicalFtpFile(com.logicaldoc.core.document.Document document, FtpUser user) LogicalFtpFile(com.logicaldoc.core.folder.Folder folder, FtpUser user) 
- 
Method SummaryModifier 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- 
LogicalFtpFilepublic LogicalFtpFile(com.logicaldoc.core.document.Document document, FtpUser user) throws com.logicaldoc.core.PersistenceException - Throws:
- com.logicaldoc.core.PersistenceException
 
- 
LogicalFtpFile
 
- 
- 
Method Details- 
getPath
- 
setPath
- 
getFolderpublic com.logicaldoc.core.folder.Folder getFolder()
- 
getDocumentpublic com.logicaldoc.core.document.Document getDocument()
- 
createInputStream- Specified by:
- createInputStreamin interface- org.apache.ftpserver.ftplet.FtpFile
- Throws:
- IOException
 
- 
createOutputStream- Specified by:
- createOutputStreamin interface- org.apache.ftpserver.ftplet.FtpFile
- Throws:
- IOException
 
- 
deletepublic boolean delete()- Specified by:
- deletein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
doesExistpublic boolean doesExist()- Specified by:
- doesExistin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getAbsolutePath- Specified by:
- getAbsolutePathin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getGroupName- Specified by:
- getGroupNamein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getLastModifiedpublic long getLastModified()- Specified by:
- getLastModifiedin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getLinkCountpublic int getLinkCount()- Specified by:
- getLinkCountin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getName- Specified by:
- getNamein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getOwnerName- Specified by:
- getOwnerNamein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getPhysicalFile- Specified by:
- getPhysicalFilein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getSizepublic long getSize()- Specified by:
- getSizein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
isDirectorypublic boolean isDirectory()- Specified by:
- isDirectoryin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
isFilepublic boolean isFile()- Specified by:
- isFilein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
isHiddenpublic boolean isHidden()- Specified by:
- isHiddenin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
isReadablepublic boolean isReadable()- Specified by:
- isReadablein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
isRemovablepublic boolean isRemovable()- Specified by:
- isRemovablein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
isWritablepublic boolean isWritable()- Specified by:
- isWritablein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
listFiles- Specified by:
- listFilesin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
mkdirpublic boolean mkdir()- Specified by:
- mkdirin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
movepublic boolean move(org.apache.ftpserver.ftplet.FtpFile toFile) - Specified by:
- movein interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
setLastModifiedpublic boolean setLastModified(long lastModified) - Specified by:
- setLastModifiedin interface- org.apache.ftpserver.ftplet.FtpFile
 
- 
getUser
- 
toString
 
-