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

Class com.jconfig.mac.PlatformInfoMRJ
java.lang.Object
   |
   +----com.jconfig.mac.PlatformInfoMRJ

  Summary

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.


  Cross Reference

Returned By:
PlatformInfoMRJ.getInstance()





  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


· bIsPlatformMRJJRI

Summary  |  Top
   private boolean bIsPlatformMRJJRI


· bIsPlatformCW113

Summary  |  Top
   private boolean bIsPlatformCW113


· bIsPlatformMRJOSX

Summary  |  Top
   private boolean bIsPlatformMRJOSX


· bIsPowerMac

Summary  |  Top
   private boolean bIsPowerMac


· bIsOSX

Summary  |  Top
   private boolean bIsOSX


· bIsApple

Summary  |  Top
   private boolean bIsApple


· bIsCW

Summary  |  Top
   private boolean bIsCW


· bIs102OrLess

Summary  |  Top
   private boolean bIs102OrLess


· bIs11OrGreater

Summary  |  Top
   private boolean bIs11OrGreater


· bIs113OrGreater

Summary  |  Top
   private boolean bIs113OrGreater


· instance

Summary  |  Top
   private static PlatformInfoMRJ instance


  Constructors

· PlatformInfoMRJ

Summary  |  Top

   private PlatformInfoMRJ() 


  Methods

· getInstance

Summary  |  Top
   static PlatformInfoMRJ getInstance() 


· 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: "CW", "MRJJRI", or "unknown".

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


· 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


· isPlatformMRJJRI

Summary  |  Top
   public boolean isPlatformMRJJRI() 


· isPlatformCW113

Summary  |  Top
   public boolean isPlatformCW113() 


· isPlatformMRJOSX

Summary  |  Top
   public boolean isPlatformMRJOSX() 


· isPowerMac

Summary  |  Top
   public boolean isPowerMac() 


· isApple

Summary  |  Top
   public boolean isApple() 


· isCW

Summary  |  Top
   public boolean isCW() 


· is102OrLess

Summary  |  Top
   public boolean is102OrLess() 


· is11OrGreater

Summary  |  Top
   public boolean is11OrGreater() 


· is113OrGreater

Summary  |  Top
   public boolean is113OrGreater() 


· 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  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7