public final class SerialComPlatform extends Object
Identifies various hardware and software platform attributes like operating system and CPU architecture etc.
| Constructor and Description |
|---|
SerialComPlatform(SerialComSystemProperty mSerialComSystemProperty)
Allocates a new SerialComPlatform object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCPUArch(int osType)
Identifies CPU architecture scm library is running on.
|
int |
getJAVAABIType()
Conformance to the standard ABI for the ARM architecture helps in inter-operation between re-locatable or
executable files built by different tool chains.
|
int |
getOSType()
Identifies the operating system on which scm library is running.
|
public SerialComPlatform(SerialComSystemProperty mSerialComSystemProperty)
Allocates a new SerialComPlatform object.
mSerialComSystemProperty - instance which gives various info about system propertiespublic final int getOSType()
throws SecurityException,
SerialComUnexpectedException
Identifies the operating system on which scm library is running.
SecurityException - if java system properties can not be accessed.SerialComUnexpectedException - if the "os.name" java system property is null.public final int getCPUArch(int osType)
throws SecurityException,
SerialComUnexpectedException,
FileNotFoundException,
IOException
Identifies CPU architecture scm library is running on.
Packages that are compiled for i386 architecture are compatible with i486, i586, i686, i786, i886 and i986 architectures. Packages that are compiled for x86_64 architecture are compatible with amd64 architecture.
SecurityException - if java system properties can not be accessed.SerialComUnexpectedException - if the "os.arch" java system property is null.FileNotFoundException - if file "/proc/cpuinfo" can not be found for Linux on ARM platform.IOException - if file operations on "/proc/cpuinfo" fails for Linux on ARM platform.public final int getJAVAABIType()
throws SerialComUnexpectedException
Conformance to the standard ABI for the ARM architecture helps in inter-operation between re-locatable or executable files built by different tool chains.
SerialComUnexpectedException - if "java.home" java system property is null.Copyright © 2016. All rights reserved.