|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileObject
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 |
getFullName()
Get the fully qualified name. |
java.lang.String |
getGroupName()
Get owner group name. |
long |
getLastModified()
Get last modified time. |
int |
getLinkCount()
Get link count. |
java.lang.String |
getOwnerName()
Get the owner name. |
java.lang.String |
getShortName()
Get the file short name. |
long |
getSize()
Get file size. |
boolean |
hasDeletePermission()
Has delete permission? |
boolean |
hasReadPermission()
Has read permission? |
boolean |
hasWritePermission()
Has write permission? |
boolean |
isDirectory()
Is it a directory? |
boolean |
isFile()
Is it a file? |
boolean |
isHidden()
Is a hidden file? |
FileObject[] |
listFiles()
List file objects. |
boolean |
mkdir()
Create directory. |
boolean |
move(FileObject destination)
Move file. |
Method Detail |
---|
java.lang.String getFullName()
java.lang.String getShortName()
boolean isHidden()
boolean isDirectory()
boolean isFile()
boolean doesExist()
boolean hasReadPermission()
boolean hasWritePermission()
boolean hasDeletePermission()
java.lang.String getOwnerName()
java.lang.String getGroupName()
int getLinkCount()
long getLastModified()
long getSize()
boolean mkdir()
boolean delete()
boolean move(FileObject destination)
FileObject[] listFiles()
java.io.OutputStream createOutputStream(long offset) throws java.io.IOException
java.io.IOException
java.io.InputStream createInputStream(long offset) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |