public class MiltonFtpFile extends Object implements org.apache.ftpserver.ftplet.FtpFile
| Constructor and Description |
|---|
MiltonFtpFile(MiltonFsView resourceFactory,
Path path,
CollectionResource parent,
Resource r,
MiltonUser user) |
MiltonFtpFile(MiltonFsView resourceFactory,
Path path,
Resource r,
MiltonUser user) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(long offset) |
OutputStream |
createOutputStream(long offset) |
boolean |
delete() |
boolean |
doesExist() |
String |
getAbsolutePath() |
String |
getGroupName() |
long |
getLastModified() |
int |
getLinkCount() |
String |
getName() |
String |
getOwnerName() |
long |
getSize() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
boolean |
isReadable() |
boolean |
isRemovable() |
boolean |
isWritable()
Check file write permission.
|
List<org.apache.ftpserver.ftplet.FtpFile> |
listFiles() |
boolean |
mkdir() |
boolean |
move(org.apache.ftpserver.ftplet.FtpFile newFile) |
boolean |
setLastModified(long time) |
public MiltonFtpFile(MiltonFsView resourceFactory, Path path, Resource r, MiltonUser user)
public MiltonFtpFile(MiltonFsView resourceFactory, Path path, CollectionResource parent, Resource r, MiltonUser user)
public String getAbsolutePath()
getAbsolutePath in interface org.apache.ftpserver.ftplet.FtpFilepublic String getName()
getName in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean isHidden()
isHidden in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean isDirectory()
isDirectory in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean isFile()
isFile in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean doesExist()
doesExist in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean isReadable()
isReadable in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean isWritable()
isWritable in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean isRemovable()
isRemovable in interface org.apache.ftpserver.ftplet.FtpFilepublic String getOwnerName()
getOwnerName in interface org.apache.ftpserver.ftplet.FtpFilepublic String getGroupName()
getGroupName in interface org.apache.ftpserver.ftplet.FtpFilepublic int getLinkCount()
getLinkCount in interface org.apache.ftpserver.ftplet.FtpFilepublic long getLastModified()
getLastModified in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean setLastModified(long time)
setLastModified in interface org.apache.ftpserver.ftplet.FtpFilepublic long getSize()
getSize in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean mkdir()
mkdir in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean delete()
delete in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean move(org.apache.ftpserver.ftplet.FtpFile newFile)
move in interface org.apache.ftpserver.ftplet.FtpFilepublic List<org.apache.ftpserver.ftplet.FtpFile> listFiles()
listFiles in interface org.apache.ftpserver.ftplet.FtpFilepublic OutputStream createOutputStream(long offset) throws IOException
createOutputStream in interface org.apache.ftpserver.ftplet.FtpFileIOExceptionpublic InputStream createInputStream(long offset) throws IOException
createInputStream in interface org.apache.ftpserver.ftplet.FtpFileIOExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.