public abstract class OSAdapter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 namepublic 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