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 18
private String APIVersion;
private boolean bIs102OrLess;
private boolean bIs113OrGreater;
private boolean bIs11OrGreater;
private boolean bIsApple;
private boolean bIsCW;
private boolean bIsOSX;
private boolean bIsPlatformCW113;
private boolean bIsPlatformMRJJRI;
private boolean bIsPlatformMRJOSX;
private boolean bIsPowerMac;
private static PlatformInfoMRJ instance;
private String interpreterVersion;
private String osArch;
private String osName;
private String osVersion;
private String vendor;
private VersionNumber versNum;
// Constructors 1
private PlatformInfoMRJ();
// Methods 21
static PlatformInfoMRJ getInstance();
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 isPlatformMRJOSX();
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-2002 Samizdat Productions. All Rights Reserved.
- Returned By:
- PlatformInfoMRJ.getInstance()
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 bIsPlatformMRJOSX
private boolean bIsPowerMac
private boolean bIsOSX
private boolean bIsApple
private boolean bIsCW
private boolean bIs102OrLess
private boolean bIs11OrGreater
private boolean bIs113OrGreater
private static PlatformInfoMRJ instance
private PlatformInfoMRJ()
static PlatformInfoMRJ getInstance()
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 isPlatformMRJOSX()
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