|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FtpFile
This is the file abstraction used by the server.
| 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? |
java.lang.String |
getAbsolutePath()
Get the full path from the base directory of the FileSystemView. |
java.lang.String |
getGroupName()
Get owner group name. |
long |
getLastModified()
Get last modified time in UTC. |
int |
getLinkCount()
Get link count. |
java.lang.String |
getName()
Get the file name of the file |
java.lang.String |
getOwnerName()
Get the owner name. |
long |
getSize()
Get file size. |
boolean |
isDirectory()
Is it a directory? |
boolean |
isFile()
Is it a file? |
boolean |
isHidden()
Is the file hidden? |
boolean |
isReadable()
Has read permission? |
boolean |
isRemovable()
Has delete permission? |
boolean |
isWritable()
Has write permission? |
java.util.List<FtpFile> |
listFiles()
List file objects. |
boolean |
mkdir()
Create directory. |
boolean |
move(FtpFile destination)
Move file. |
boolean |
setLastModified(long time)
Set the last modified time stamp of a file |
| Method Detail |
|---|
java.lang.String getAbsolutePath()
java.lang.String getName()
boolean isHidden()
FtpFile is hiddenboolean isDirectory()
FtpFile is a directoryboolean isFile()
FtpFile is a file, false if it is a directoryboolean doesExist()
FtpFile existsboolean isReadable()
FtpFile is readable by the userboolean isWritable()
FtpFile is writable by the userboolean isRemovable()
FtpFile is removable by the userjava.lang.String getOwnerName()
FtpFilejava.lang.String getGroupName()
FtpFileint getLinkCount()
FtpFilelong getLastModified()
FtpFileboolean setLastModified(long time)
time - The last modified time, in milliseconds since the epoch. See File.setLastModified(long).long getSize()
FtpFile in bytesboolean mkdir()
boolean delete()
boolean move(FtpFile destination)
destination - The target FtpFile to move the current FtpFile to
java.util.List<FtpFile> listFiles()
List of FtpFiles
java.io.OutputStream createOutputStream(long offset)
throws java.io.IOException
offset - The number of bytes at where to start writing.
If the file is not random accessible,
any offset other than zero will throw an exception.
OutputStream used to write to the FtpFile
java.io.IOException
java.io.InputStream createInputStream(long offset)
throws java.io.IOException
offset - The number of bytes of where to start reading.
If the file is not random accessible,
any offset other than zero will throw an exception.
InputStream used to read the FtpFile
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||