All Packages This Package Class Hierarchy Class Search Index
Class com.jconfig.mac.PlatformInfoMRJ
java.lang.Object
|
+----com.jconfig.mac.PlatformInfoMRJ
class PlatformInfoMRJ
extends java.lang.Object
implements com.jconfig.PlatformInfoI
{
// Fields 15
private String APIVersion;
private boolean bIs102OrLess;
private boolean bIs113OrGreater;
private boolean bIs11OrGreater;
private boolean bIsApple;
private boolean bIsCW;
private boolean bIsPlatformCW113;
private boolean bIsPlatformMRJJRI;
private boolean bIsPowerMac;
private String interpreterVersion;
private String osArch;
private String osName;
private String osVersion;
private String vendor;
private VersionNumber versNum;
// Constructors 1
public PlatformInfoMRJ();
// Methods 19
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 is102OrLess();
public boolean is113OrGreater();
public boolean is11OrGreater();
public boolean isApple();
public boolean isCW();
public boolean isPlatformCW113();
public boolean isPlatformMRJJRI();
public boolean isPowerMac();
}
This class determines the specifics of the machine and VM which is being used.
A set of accessor methods are provided, for example:
isPowerMac
- indicates whether we're running on a PowerMac
- Author:
-
Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.
private VersionNumber versNum
private String osName
private String osArch
private String osVersion
private String vendor
private String APIVersion
private String interpreterVersion
private boolean bIsPlatformMRJJRI
private boolean bIsPlatformCW113
private boolean bIsPowerMac
private boolean bIsApple
private boolean bIsCW
private boolean bIs102OrLess
private boolean bIs11OrGreater
private boolean bIs113OrGreater
public PlatformInfoMRJ()
public int getPlatformType()
Indicates which platform type we're running on: WINDOWS, LINUX, etc.
- Implements:
- getPlatformType in interface PlatformInfoI
public String getPlatformString()
Returns a string representing the specific platform: "CW", "MRJJRI", or "unknown".
- Implements:
- getPlatformString in interface PlatformInfoI
public VersionNumber getVersionNumber()
Returns the value of the "java.version" system property, converted to a VersionNumber object.
- Implements:
- getVersionNumber in interface PlatformInfoI
public String getOSName()
Returns the value of the "os.name" system property, converted to lowercase.
- Implements:
- getOSName in interface PlatformInfoI
public String getOSArchitecture()
Returns the value of the "os.arch" system property, converted to lowercase.
- Implements:
- getOSArchitecture in interface PlatformInfoI
public String getOSVersion()
Returns the value of the "os.version" system property, converted to lowercase.
- Implements:
- getOSVersion in interface PlatformInfoI
public String getVendor()
Returns the value of the "java.vendor" system property, converted to lowercase.
- Implements:
- getVendor in interface PlatformInfoI
public String getAPIVersion()
Returns the value of the "java.class.version" system property, converted to lowercase.
- Implements:
- getAPIVersion in interface PlatformInfoI
public String getInterpreterVersion()
Returns the value of the "java.version" system property, converted to lowercase.
- Implements:
- getInterpreterVersion in interface PlatformInfoI
public boolean isPlatformMRJJRI()
public boolean isPlatformCW113()
public boolean isPowerMac()
public boolean isApple()
public boolean isCW()
public boolean is102OrLess()
public boolean is11OrGreater()
public boolean is113OrGreater()
private final void figureOutPlatform()
Use various system properties to figure out which platform we're running on.
Sets the appropriate 'bIsPlatformXXX' boolean to true.
public void dumpInfo(PrintStream ps,
String indent)
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7