com.lambdaworks.jni
Class Platform

java.lang.Object
  extended by com.lambdaworks.jni.Platform

public class Platform
extends Object

A platform is a unique combination of CPU architecture and operating system. This class attempts to determine the platform it is executing on by examining and normalizing the os.arch and os.name system properties.

Author:
Will Glozer

Nested Class Summary
static class Platform.Arch
           
static class Platform.OS
           
 
Field Summary
 Platform.Arch arch
           
 Platform.OS os
           
 
Method Summary
static Platform detect()
          Attempt to detect the current platform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arch

public final Platform.Arch arch

os

public final Platform.OS os
Method Detail

detect

public static Platform detect()
                       throws UnsupportedPlatformException
Attempt to detect the current platform.

Returns:
The current platform.
Throws:
UnsupportedPlatformException - if the platform cannot be detected.


Copyright © 2013. All Rights Reserved.