|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.astrogrid.samp.Platform
Platform-dependent features required by the SAMP implementation.
| Constructor Summary | |
protected |
Platform(String name)
Constructor. |
| Method Summary | |
abstract File |
getHomeDirectory()
Returns SAMP's definition of the "home" directory. |
static Platform |
getPlatform()
Returns a Platform instance for the current system. |
protected abstract String[] |
getPrivateReadArgs(File file)
Returns an array of words to Runtime.exec(java.lang.String[]) in order
to set permissions on a given file so that it cannot be read by
anyone other than its owner. |
void |
setPrivateRead(File file)
Sets file permissions on a given file so that it cannot be read by anyone other than its owner. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Platform(String name)
name - platform name| Method Detail |
public abstract File getHomeDirectory()
public void setPrivateRead(File file)
throws IOException
file - file whose permissions are to be altered
IOException - if permissions cannot be changed
protected abstract String[] getPrivateReadArgs(File file)
throws IOException
Runtime.exec(java.lang.String[]) in order
to set permissions on a given file so that it cannot be read by
anyone other than its owner.
file - file to alter
IOExceptionpublic static Platform getPlatform()
Platform instance for the current system.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||