public class Platform extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Platform() |
| Modifier and Type | Method and Description |
|---|---|
String |
getArch()
Return platform architecture.
|
static Platform |
getInstance() |
String |
getLibPrefix()
Return the default library prefix.
|
Path[] |
getLibrarySearchDirs()
Returns the list of paths to search when loading libraries.
|
String |
getLibSuffix()
Return the default library suffix.
|
String |
getName()
Returns platform name.
|
Path |
getTemporaryDir()
Returns platform-specific temporary directory.
|
Path |
getUserHome()
Returns platform-specific user home directory.
|
String |
getVersion()
Returns platform version.
|
boolean |
isMac()
Returns a boolean indicating if current platform corresponds to a Apple Mac OS.
|
boolean |
isSolaris()
Returns a boolean indicating if current platform is a Solaris OS.
|
boolean |
isUnix()
Returns a boolean indicating if current platform is an Unix-equivalent.
|
boolean |
isWindows()
Returns a boolean indicating if current platform corresponds to a Microsoft Windows.
|
public static Platform getInstance()
public String getName()
public String getArch()
public String getVersion()
public Path getTemporaryDir()
public Path getUserHome()
public String getLibPrefix()
public String getLibSuffix()
public Path[] getLibrarySearchDirs()
public boolean isWindows()
public boolean isMac()
public boolean isUnix()
public boolean isSolaris()
Copyright © 2016 Leandro José Britto de Oliveira. All rights reserved.