|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVirtualFile
| Method Summary | |
|---|---|
boolean |
canRead()
Determine if this virtual file is readable given the current set of permissions |
boolean |
canWrite()
Determine if this virtual file is writable given the current set of permissions |
boolean |
delete()
Remove this virtual file from the file manager |
void |
editProperties(org.eclipse.swt.widgets.Shell shell)
editProperties |
boolean |
exists()
Determine if this virtual file exists in it's file system |
java.lang.String |
getAbsolutePath()
Get the path, filename and extension of this virtual file |
long |
getCreationMillis()
Get the creation time of this file in milliseconds |
java.lang.String |
getExtension()
Get the extension for this virtual file |
IVirtualFileManager |
getFileManager()
Get the file manager that this file belongs to |
IVirtualFile[] |
getFiles()
Retrieve a list of files contained by this virtual file |
IVirtualFile[] |
getFiles(boolean recurse,
boolean includeCloakedFiles)
Retrieve a list of files contained by this virtual file |
java.lang.String |
getGroup()
Get the group to which this file belongs |
org.eclipse.swt.graphics.Image |
getImage()
getImage |
long |
getModificationMillis()
Get the modification time of this file in milliseconds |
java.lang.String |
getName()
Get the filename and extension of this virtual file. |
java.lang.String |
getOwner()
Get the owner of this file |
IVirtualFile |
getParentFile()
Retrieve the virtual file that contains file file |
java.lang.String |
getPath()
Doesn't include filename and extension. |
long |
getPermissions()
Get the file permissions for this file |
java.lang.String |
getRelativePath()
Returns a path relative to the parent virtual file manager |
long |
getSize()
getSize |
java.io.InputStream |
getStream()
Get an input stream for the contents of this virtual file |
java.lang.String |
getTimeStamp()
Gets the raw time stamp for the file |
boolean |
hasFiles()
Determines if this virtual file contains files |
boolean |
isCloaked()
Is this file cloaked? |
boolean |
isDirectory()
Determines if this virtual file represents a directory |
boolean |
isFile()
Determines if this virtual file represents a file |
boolean |
isLocal()
Is this file local? |
void |
putStream(java.io.InputStream input)
Put the content of the specified input stream into this virtual file. |
boolean |
rename(java.lang.String newName)
Rename this file |
void |
setCloaked(boolean cloak)
Set the file as cloaked or not |
void |
setGroup(java.lang.String group)
Change this file's group name |
void |
setImage(org.eclipse.swt.graphics.Image image)
setImage |
void |
setModificationMillis(long modificationTime)
Sets the modification time of this file in milliseconds |
void |
setOwner(java.lang.String owner)
Change this file's owner |
void |
setPermissions(long permissions)
Set the file permissions on this file |
void |
setTimeStamp(java.lang.String timeStamp)
Sets the raw time stamp |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
void editProperties(org.eclipse.swt.widgets.Shell shell)
long getCreationMillis()
boolean isDirectory()
boolean isFile()
java.lang.String getExtension()
void setCloaked(boolean cloak)
cloak - boolean isCloaked()
boolean isLocal()
IVirtualFile[] getFiles()
throws ConnectionException,
java.io.IOException
ConnectionException
java.io.IOException
IVirtualFile[] getFiles(boolean recurse,
boolean includeCloakedFiles)
throws ConnectionException,
java.io.IOException
recurse - Do we recurse through sub-directories?includeCloakedFiles - Do we include cloaked files in the list?
ConnectionException
java.io.IOExceptionboolean hasFiles()
java.lang.String getAbsolutePath()
IVirtualFileManager getFileManager()
java.lang.String getGroup()
void setGroup(java.lang.String group)
group - org.eclipse.swt.graphics.Image getImage()
void setImage(org.eclipse.swt.graphics.Image image)
image - long getModificationMillis()
java.lang.String getTimeStamp()
void setTimeStamp(java.lang.String timeStamp)
timeStamp -
void setModificationMillis(long modificationTime)
throws java.io.IOException,
ConnectionException
modificationTime -
java.io.IOException
ConnectionExceptionjava.lang.String getName()
java.lang.String getOwner()
void setOwner(java.lang.String owner)
owner - IVirtualFile getParentFile()
java.lang.String getPath()
void setPermissions(long permissions)
permissions - The new file permission settingslong getPermissions()
long getSize()
java.io.InputStream getStream()
throws ConnectionException,
VirtualFileManagerException,
java.io.IOException
ConnectionException
VirtualFileManagerException
java.io.IOException
void putStream(java.io.InputStream input)
throws ConnectionException,
VirtualFileManagerException,
java.io.IOException
input - The input stream from which to retrieve data to place into this virtual file
ConnectionException
VirtualFileManagerException
java.io.IOExceptionboolean canRead()
boolean canWrite()
boolean delete()
throws ConnectionException,
VirtualFileManagerException
ConnectionException
VirtualFileManagerException
boolean exists()
throws ConnectionException
ConnectionException
boolean rename(java.lang.String newName)
throws ConnectionException,
VirtualFileManagerException
newName - The new name for this file
ConnectionException
VirtualFileManagerExceptionjava.lang.String getRelativePath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||