com.starbase.util
Class UnixFileAccess

java.lang.Object
  |
  +--com.starbase.util.FileAccess
        |
        +--com.starbase.util.UnixFileAccess

public class UnixFileAccess
extends FileAccess


Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 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.
 int hashCode()
          returns a unique hash for all instances of this type
 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 com.starbase.util.FileAccess
getCanWrite
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLastModified

public long getLastModified(java.lang.String file)
                     throws java.io.IOException
Description copied from class: FileAccess
Return the the file's last modified time. Value is in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).

Specified by:
getLastModified in class FileAccess
Parameters:
file - the specified file
Throws:
java.io.IOException - if an I/0 error occurs trying to access the file.

setLastModified

public void setLastModified(java.lang.String file,
                            long time)
                     throws java.io.IOException
Description copied from class: FileAccess
Change the the file's last modified time. Value is in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).

Specified by:
setLastModified in class FileAccess
Parameters:
file - the specified file
time - the new file time
Throws:
java.io.IOException - if an I/0 error occurs trying to access the file.

getIsExecutable

public boolean getIsExecutable(java.lang.String file)
                        throws java.io.IOException
Description copied from class: FileAccess
Return true if the file is "executable" by the user. The interpretation of what this means will vary by platform.

Specified by:
getIsExecutable in class FileAccess
Parameters:
file - the specified file
Throws:
java.io.IOException - if an I/0 error occurs trying to access the file.

setIsExecutable

public void setIsExecutable(java.lang.String file,
                            boolean executable)
                     throws java.io.IOException
Description copied from class: FileAccess
Change whether or not the specified file should be marked "executable".

Specified by:
setIsExecutable in class FileAccess
Parameters:
file - the specified file
executable - true if the file should be marked executable
Throws:
java.io.IOException - if an I/0 error occurs trying to access the file.

setCanWrite

public void setCanWrite(java.lang.String file,
                        boolean value)
                 throws java.io.IOException
Description copied from class: FileAccess
Change whether or not the local file can be modified.

Specified by:
setCanWrite in class FileAccess
Parameters:
file - the specified file
value - true if the file should be writable and false if not
Throws:
java.io.IOException - if an I/0 error occurs trying to access the file.

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class FileAccess
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class FileAccess
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.