Main Page
Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues |
All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.jconfig.nix.PlatformInfoNix
Summary |
class PlatformInfoNix extends java.lang.Object implements com.jconfig.PlatformInfoI { // Fields 10 private String APIVersion; private boolean bIsPlatformLinuxOther; private boolean bIsPlatformLinuxX86; private boolean bIsPlatformNix; private String interpreterVersion; private String osArch; private String osName; private String osVersion; private String vendor; private VersionNumber versNum; // Constructors 1 public PlatformInfoNix(); // Methods 13 public void dumpInfo(PrintStream, String); private final void figureOutPlatform(); public String getAPIVersion(); public String getInterpreterVersion(); public String getOSArchitecture(); public String getOSName(); public String getOSVersion(); public String getPlatformString(); public int getPlatformType(); public String getVendor(); public VersionNumber getVersionNumber(); public boolean isPlatformLinuxX86(); public boolean isPlatformNix(); }
This class determines the specifics of the machine and VM which is being used.
Fields |
· versNum | Summary | Top |
private VersionNumber versNum
· osName | Summary | Top |
private String osName
· osArch | Summary | Top |
private String osArch
· osVersion | Summary | Top |
private String osVersion
· vendor | Summary | Top |
private String vendor
· APIVersion | Summary | Top |
private String APIVersion
· interpreterVersion | Summary | Top |
private String interpreterVersion
· bIsPlatformNix | Summary | Top |
private boolean bIsPlatformNix
· bIsPlatformLinuxX86 | Summary | Top |
private boolean bIsPlatformLinuxX86
· bIsPlatformLinuxOther | Summary | Top |
private boolean bIsPlatformLinuxOther
Constructors |
· PlatformInfoNix | Summary | Top |
public PlatformInfoNix()
Methods |
· getPlatformType | Summary | Top |
public int getPlatformType()
Indicates which platform type we're running on: WINDOWS, LINUX, etc.
- Implements:
- getPlatformType in interface PlatformInfoI
· getPlatformString | Summary | Top |
public String getPlatformString()
Returns a string representing the specific platform: "Linux x86", "Linux Other", or "Other *nix".
- Implements:
- getPlatformString in interface PlatformInfoI
· getVersionNumber | Summary | Top |
public VersionNumber getVersionNumber()
Returns the value of the "java.version" system property, converted to a VersionNumber object.
- Implements:
- getVersionNumber in interface PlatformInfoI
· isPlatformLinuxX86 | Summary | Top |
public boolean isPlatformLinuxX86()
· isPlatformNix | Summary | Top |
public boolean isPlatformNix()
· getOSName | Summary | Top |
public String getOSName()
Returns the value of the "os.name" system property, converted to lowercase.
- Implements:
- getOSName in interface PlatformInfoI
· getOSArchitecture | Summary | Top |
public String getOSArchitecture()
Returns the value of the "os.arch" system property, converted to lowercase.
- Implements:
- getOSArchitecture in interface PlatformInfoI
· getOSVersion | Summary | Top |
public String getOSVersion()
Returns the value of the "os.version" system property, converted to lowercase.
- Implements:
- getOSVersion in interface PlatformInfoI
· getVendor | Summary | Top |
public String getVendor()
Returns the value of the "java.vendor" system property, converted to lowercase.
- Implements:
- getVendor in interface PlatformInfoI
· getAPIVersion | Summary | Top |
public String getAPIVersion()
Returns the value of the "java.class.version" system property, converted to lowercase.
- Implements:
- getAPIVersion in interface PlatformInfoI
· getInterpreterVersion | Summary | Top |
public String getInterpreterVersion()
Returns the value of the "java.version" system property, converted to lowercase.
- Implements:
- getInterpreterVersion in interface PlatformInfoI
· figureOutPlatform | Summary | Top |
private final void figureOutPlatform()
Use various system properties to figure out which platform we're running on. Sets the appropriate 'bIsPlatformXXX' boolean to true.
· dumpInfo | Summary | Top |
public void dumpInfo(PrintStream ps, String indent)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7