public class VirtualFtpFile extends Object implements org.apache.ftpserver.ftplet.FtpFile
| Modifier and Type | Field and Description |
|---|---|
private VirtualFileSystem |
fileSystem |
private long |
lastModified |
private VirtualPath |
path |
| Constructor and Description |
|---|
VirtualFtpFile(VirtualPath path,
VirtualFileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(long l) |
OutputStream |
createOutputStream(long l) |
boolean |
delete() |
boolean |
doesExist() |
boolean |
equals(Object o) |
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() |
boolean |
mkdir() |
boolean |
move(org.apache.ftpserver.ftplet.FtpFile ftpFile) |
boolean |
setLastModified(long l) |
private final VirtualPath path
private final VirtualFileSystem fileSystem
private long lastModified
public VirtualFtpFile(VirtualPath path, VirtualFileSystem fileSystem) throws IllegalArgumentException
IllegalArgumentExceptionpublic 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 l)
throws UnsupportedOperationException
setLastModified in interface org.apache.ftpserver.ftplet.FtpFileUnsupportedOperationExceptionpublic long getSize()
getSize in interface org.apache.ftpserver.ftplet.FtpFilepublic Object getPhysicalFile() throws UnsupportedOperationException
getPhysicalFile in interface org.apache.ftpserver.ftplet.FtpFileUnsupportedOperationExceptionpublic 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 ftpFile)
throws UnsupportedOperationException
move in interface org.apache.ftpserver.ftplet.FtpFileUnsupportedOperationExceptionpublic List<? extends org.apache.ftpserver.ftplet.FtpFile> listFiles()
listFiles in interface org.apache.ftpserver.ftplet.FtpFilepublic OutputStream createOutputStream(long l) throws UnsupportedOperationException
createOutputStream in interface org.apache.ftpserver.ftplet.FtpFileUnsupportedOperationExceptionpublic InputStream createInputStream(long l) throws UnsupportedOperationException
createInputStream in interface org.apache.ftpserver.ftplet.FtpFileUnsupportedOperationExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.