public final class SerialComSystemProperty extends Object
Provides java system properties to the callers in a unified way.
| Constructor and Description |
|---|
SerialComSystemProperty()
Allocates a new SerialComSystemProperty object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getfileSeparator()
Gives platform specific file separator.
|
String |
getJavaHome()
Locate home directory for Java.
|
String |
getJavaIOTmpDir()
Gives system/user temp directory as returned by JVM.
|
String |
getJavaVmVendor()
Gives the vendor of java virtual machine in use.
|
String |
getOSArch()
Identifies operating system architecture (not of JRE).
|
String |
getOSName()
Identifies operating system this library is running on.
|
String |
getUserHome()
Gives home directory of the user currently associated with this process.
|
public SerialComSystemProperty()
Allocates a new SerialComSystemProperty object.
public String getOSName() throws SecurityException
Identifies operating system this library is running on.
SecurityException - if security manager does not allow access to system property.public String getOSArch() throws SecurityException
Identifies operating system architecture (not of JRE).
SecurityException - if security manager does not allow access to system property.public String getJavaVmVendor() throws SecurityException
Gives the vendor of java virtual machine in use.
SecurityException - if security manager does not allow access to system property.public String getJavaHome() throws SecurityException
Locate home directory for Java.
SecurityException - if security manager does not allow access to system property.public String getJavaIOTmpDir() throws SecurityException
Gives system/user temp directory as returned by JVM.
SecurityException - if security manager does not allow access to system property.public String getUserHome() throws SecurityException
Gives home directory of the user currently associated with this process.
SecurityException - if security manager does not allow access to system property.public String getfileSeparator() throws SecurityException
Gives platform specific file separator.
SecurityException - if security manager does not allow access to system property.Copyright © 2016. All rights reserved.