public class NativeFtpFile extends Object implements org.apache.ftpserver.ftplet.FtpFile
| Modifier | Constructor and Description |
|---|---|
protected |
NativeFtpFile(String fileName,
File file,
org.apache.ftpserver.ftplet.User user)
Constructor, internal do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(long offset)
Create input stream for reading.
|
OutputStream |
createOutputStream(long offset)
Create output stream for writing.
|
boolean |
delete()
Delete file.
|
boolean |
doesExist()
Does this file exists?
|
boolean |
equals(Object obj)
Implements equals by comparing getCanonicalPath() for the underlying file instabnce.
|
String |
getAbsolutePath()
Get full name.
|
String |
getGroupName()
Get group name
|
long |
getLastModified()
Get last modified time.
|
int |
getLinkCount()
Get link count
|
String |
getName()
Get short name.
|
String |
getOwnerName()
Get file owner.
|
File |
getPhysicalFile()
Get the physical file object.
|
long |
getSize()
Get file size.
|
int |
hashCode() |
boolean |
isDirectory()
Is it a directory?
|
boolean |
isFile()
Is it a file?
|
boolean |
isHidden()
Is a hidden file?
|
boolean |
isReadable()
Check read permission.
|
boolean |
isRemovable()
Has delete permission.
|
boolean |
isWritable()
Check file write permission.
|
List<org.apache.ftpserver.ftplet.FtpFile> |
listFiles()
List files.
|
boolean |
mkdir()
Create directory.
|
boolean |
move(org.apache.ftpserver.ftplet.FtpFile dest)
Move file object.
|
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 long getSize()
getSize 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 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 boolean delete()
delete in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean move(org.apache.ftpserver.ftplet.FtpFile dest)
move in interface org.apache.ftpserver.ftplet.FtpFilepublic boolean mkdir()
mkdir in interface org.apache.ftpserver.ftplet.FtpFilepublic File getPhysicalFile()
getPhysicalFile 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.FtpFileIOExceptionpublic boolean equals(Object obj)
Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.