public abstract class CanBeAnythingFile extends Object implements org.apache.ftpserver.ftplet.FtpFile
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dir
The dir.
|
| Constructor and Description |
|---|
CanBeAnythingFile(Path parent,
String name)
Instantiates a new can be anything file.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(long offset) |
abstract OutputStream |
createOutputStream(long offset) |
abstract boolean |
delete() |
boolean |
doesExist() |
String |
getAbsolutePath() |
String |
getGroupName() |
long |
getLastModified() |
int |
getLinkCount() |
String |
getName() |
String |
getOwnerName() |
Object |
getPhysicalFile() |
long |
getSize() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
boolean |
isReadable() |
boolean |
isRemovable() |
boolean |
isWritable() |
List<? extends org.apache.ftpserver.ftplet.FtpFile> |
listFiles() |
abstract boolean |
mkdir() |
boolean |
move(org.apache.ftpserver.ftplet.FtpFile destination) |
boolean |
setLastModified(long time) |
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 Object getPhysicalFile()
getPhysicalFile in interface org.apache.ftpserver.ftplet.FtpFilepublic abstract boolean mkdir()
mkdir in interface org.apache.ftpserver.ftplet.FtpFilepublic abstract boolean delete()
delete in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean move(org.apache.ftpserver.ftplet.FtpFile destination)
move in interface org.apache.ftpserver.ftplet.FtpFilepublic List<? extends org.apache.ftpserver.ftplet.FtpFile> listFiles()
listFiles in interface org.apache.ftpserver.ftplet.FtpFilepublic abstract 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 © 2018 Global Crop Diversity Trust. All rights reserved.