|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.util.FileAccess
com.starteam.util.NativeFileAccess
public class NativeFileAccess
A collection of Native Methods to access the File System directly
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.starteam.util.FileAccess |
|---|
FileAccess.Attributes |
| Constructor Summary | |
|---|---|
NativeFileAccess()
|
|
| Method Summary | |
|---|---|
boolean |
getCanWrite(java.lang.String file)
Return true if the file is writable by the user. |
long |
getFileLength(java.lang.String fileName)
|
boolean |
getIsExecutable(java.lang.String file)
Return true if the file is "executable" by the user. |
long |
getLastModified(java.lang.String file)
Return the the file's last modified time. |
boolean |
isRemoteDrive(java.lang.String fileName)
|
void |
loadFileAttributes(FileAccess.Attributes[] attributes)
Load all available attributes from the file system in bulk Each attribute object in the array should have the fully qualified file name (with path) specified. |
void |
setCanWrite(java.lang.String file,
boolean value)
Change whether or not the local file can be modified. |
void |
setIsExecutable(java.lang.String file,
boolean executable)
Change whether or not the specified file should be marked "executable". |
void |
setLastModified(java.lang.String file,
long time)
Change the the file's last modified time. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeFileAccess()
| Method Detail |
|---|
public long getLastModified(java.lang.String file)
throws java.io.IOException
FileAccess
getLastModified in class FileAccessfile - the specified file
java.io.IOException - if an I/0 error occurs trying to access the file.
public void setLastModified(java.lang.String file,
long time)
throws java.io.IOException
FileAccess
setLastModified in class FileAccessfile - the specified filetime - the new file time
java.io.IOException - if an I/0 error occurs trying to access the file.public boolean getCanWrite(java.lang.String file)
FileAccess
getCanWrite in class FileAccessfile - the specified file
public void setCanWrite(java.lang.String file,
boolean value)
throws java.io.IOException
FileAccess
setCanWrite in class FileAccessfile - the specified filevalue - true if the file should be writable and false if not
java.io.IOException - if an I/0 error occurs trying to access the file.
public boolean getIsExecutable(java.lang.String file)
throws java.io.IOException
FileAccess
getIsExecutable in class FileAccessfile - the name of the specified file
java.io.IOException - if an I/0 error occurs trying to access the file.
public void setIsExecutable(java.lang.String file,
boolean executable)
throws java.io.IOException
FileAccess
setIsExecutable in class FileAccessfile - the name of the specified fileexecutable - true to set the file executable bit
java.io.IOException - if an I/0 error occurs trying to access the file.
public long getFileLength(java.lang.String fileName)
throws java.io.IOException
getFileLength in class FileAccessfileName - the name of the specified file
java.io.IOException - if an I/0 error occurs trying to access the file.public boolean isRemoteDrive(java.lang.String fileName)
isRemoteDrive in class FileAccessfileName - the fully qualified name of the specified file
Platformpublic void loadFileAttributes(FileAccess.Attributes[] attributes)
loadFileAttributes in class FileAccessattributes - the attributes to load
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||