|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.os.OSAdapter
public abstract class OSAdapter
This abstract class provides service methods for accessing operating-system-specific information. No instances of this class should ever be instantiated, as all methods are static.
Method Summary | |
---|---|
static java.lang.String[] |
getCachedSerialPortNames(java.lang.String deviceName)
Get the list of serial port device names, including the specified name. |
static java.io.File |
getDirectoryFromCache(java.lang.String cacheId)
Get a File representing a remembered directory for a particular type of file operation. |
static java.lang.String[] |
getSerialPortNames(java.lang.String currentDevName)
Obtain the list of unused serial ports on this system, using RXTX. |
static boolean |
isWindows()
Test if the host operating system is Microsoft Windows. |
static void |
openURL(java.lang.String url)
Launch O/S-specific browser to view a particular URL. |
static void |
purgeSerialPortCache()
Purge the cached list of serial port device names, so the next query will have to build the list from scratch. |
static void |
putDirectoryToCache(java.lang.String cacheId,
java.io.File dir)
remember the last directory used for a type of file operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String[] getSerialPortNames(java.lang.String currentDevName)
currentDevName
- String of an already-busy device name to add to list, or null for no additional name
public static java.lang.String[] getCachedSerialPortNames(java.lang.String deviceName)
deviceName
- device name to include (in case the device is already open)
public static void purgeSerialPortCache()
public static boolean isWindows()
public static void openURL(java.lang.String url)
url
- String representation of URL to viewpublic static java.io.File getDirectoryFromCache(java.lang.String cacheId)
cacheId
- String name of file operation (such as log files, or tile files)
public static void putDirectoryToCache(java.lang.String cacheId, java.io.File dir)
cacheId
- String name of file typedir
- File pointing to the last directory used for those files
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |