|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ftpserver.filesystem.nativefs.impl.NativeFtpFile
public class NativeFtpFile
Internal class, do not use directly. This class wraps native file object.
| Constructor Summary | |
|---|---|
protected |
NativeFtpFile(java.lang.String fileName,
java.io.File file,
User user)
Constructor, internal do not use directly. |
| Method Summary | |
|---|---|
java.io.InputStream |
createInputStream(long offset)
Create input stream for reading. |
java.io.OutputStream |
createOutputStream(long offset)
Create output stream for writing. |
boolean |
delete()
Delete file. |
boolean |
doesExist()
Does this file exists? |
boolean |
equals(java.lang.Object obj)
Implements equals by comparing getCanonicalPath() for the underlying file instabnce. |
java.lang.String |
getAbsolutePath()
Get full name. |
java.lang.String |
getGroupName()
Get group name |
long |
getLastModified()
Get last modified time. |
int |
getLinkCount()
Get link count |
java.lang.String |
getName()
Get short name. |
java.lang.String |
getOwnerName()
Get file owner. |
java.io.File |
getPhysicalFile()
Get the physical file object. |
static java.lang.String |
getPhysicalName(java.lang.String rootDir,
java.lang.String currDir,
java.lang.String fileName)
Get the physical canonical file name. |
static java.lang.String |
getPhysicalName(java.lang.String rootDir,
java.lang.String currDir,
java.lang.String fileName,
boolean caseInsensitive)
|
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. |
java.util.List<FtpFile> |
listFiles()
List files. |
boolean |
mkdir()
Create directory. |
boolean |
move(FtpFile dest)
Move file object. |
static java.lang.String |
normalizeSeparateChar(java.lang.String pathName)
Normalize separate character. |
boolean |
setLastModified(long time)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NativeFtpFile(java.lang.String fileName,
java.io.File file,
User user)
| Method Detail |
|---|
public java.lang.String getAbsolutePath()
getAbsolutePath in interface FtpFilepublic java.lang.String getName()
getName in interface FtpFilepublic boolean isHidden()
isHidden in interface FtpFilepublic boolean isDirectory()
isDirectory in interface FtpFilepublic boolean isFile()
isFile in interface FtpFilepublic boolean doesExist()
doesExist in interface FtpFilepublic long getSize()
getSize in interface FtpFilepublic java.lang.String getOwnerName()
getOwnerName in interface FtpFilepublic java.lang.String getGroupName()
getGroupName in interface FtpFilepublic int getLinkCount()
getLinkCount in interface FtpFilepublic long getLastModified()
getLastModified in interface FtpFilepublic boolean setLastModified(long time)
setLastModified in interface FtpFilepublic boolean isReadable()
isReadable in interface FtpFilepublic boolean isWritable()
isWritable in interface FtpFilepublic boolean isRemovable()
isRemovable in interface FtpFilepublic boolean delete()
delete in interface FtpFilepublic boolean move(FtpFile dest)
move in interface FtpFilepublic boolean mkdir()
mkdir in interface FtpFilepublic java.io.File getPhysicalFile()
public java.util.List<FtpFile> listFiles()
listFiles in interface FtpFile
public java.io.OutputStream createOutputStream(long offset)
throws java.io.IOException
createOutputStream in interface FtpFilejava.io.IOException
public java.io.InputStream createInputStream(long offset)
throws java.io.IOException
createInputStream in interface FtpFilejava.io.IOExceptionpublic static final java.lang.String normalizeSeparateChar(java.lang.String pathName)
public static final java.lang.String getPhysicalName(java.lang.String rootDir,
java.lang.String currDir,
java.lang.String fileName)
rootDir - The root directory.currDir - The current directory. It will always be with respect to the
root directory.fileName - The input file name.
public static final java.lang.String getPhysicalName(java.lang.String rootDir,
java.lang.String currDir,
java.lang.String fileName,
boolean caseInsensitive)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||