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.win.PlatformInfoMSVM
java.lang.Object
   |
   +----com.jconfig.win.PlatformInfoMSVM

  Summary

class  PlatformInfoMSVM
     extends java.lang.Object
     implements com.jconfig.PlatformInfoI
{
          // Fields 21
     private String APIVersion;
     private boolean bIs102OrLess;
     private boolean bIs11OrGreater;
     private boolean bIsMS;
     private boolean bIsPlatformMSVM15;
     private boolean bIsPlatformMSVM15W;
     private boolean bIsPlatformMSVM20;
     private boolean bIsPlatformMSVM20W;
     private boolean bIsPlatformSun11;
     private boolean bIsPlatformSun11W;
     private boolean bIsSun;
     private boolean bIsSuperCede;
     private boolean bIsSymantec;
     private boolean bIsWin95;
     private boolean bIsWinNT;
     private String interpreterVersion;
     private String osArch;
     private String osName;
     private String osVersion;
     private String vendor;
     private VersionNumber versNum;

          // Constructors 1
     public PlatformInfoMSVM();

          // Methods 17
     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 isPlatformMSVM15();
     public boolean isPlatformMSVM15W();
     public boolean isPlatformMSVM20();
     public boolean isPlatformMSVM20W();
     public boolean isPlatformSun11();
     public boolean isPlatformSun11W();
}

This class determines the specifics of the machine and VM which is being used.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.




  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


· bIsPlatformMSVM15

Summary  |  Top
   private boolean bIsPlatformMSVM15


· bIsPlatformMSVM15W

Summary  |  Top
   private boolean bIsPlatformMSVM15W


· bIsPlatformMSVM20

Summary  |  Top
   private boolean bIsPlatformMSVM20


· bIsPlatformMSVM20W

Summary  |  Top
   private boolean bIsPlatformMSVM20W


· bIsPlatformSun11

Summary  |  Top
   private boolean bIsPlatformSun11


· bIsPlatformSun11W

Summary  |  Top
   private boolean bIsPlatformSun11W


· bIsWinNT

Summary  |  Top
   private boolean bIsWinNT


· bIsWin95

Summary  |  Top
   private boolean bIsWin95


· bIsMS

Summary  |  Top
   private boolean bIsMS


· bIsSun

Summary  |  Top
   private boolean bIsSun


· bIsSuperCede

Summary  |  Top
   private boolean bIsSuperCede


· bIsSymantec

Summary  |  Top
   private boolean bIsSymantec


· bIs102OrLess

Summary  |  Top
   private boolean bIs102OrLess


· bIs11OrGreater

Summary  |  Top
   private boolean bIs11OrGreater


  Constructors

· PlatformInfoMSVM

Summary  |  Top

   public PlatformInfoMSVM() 


  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: "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


· isPlatformMSVM15

Summary  |  Top
   public boolean isPlatformMSVM15() 


· isPlatformMSVM20

Summary  |  Top
   public boolean isPlatformMSVM20() 


· isPlatformSun11

Summary  |  Top
   public boolean isPlatformSun11() 


· isPlatformMSVM15W

Summary  |  Top
   public boolean isPlatformMSVM15W() 


· isPlatformMSVM20W

Summary  |  Top
   public boolean isPlatformMSVM20W() 


· isPlatformSun11W

Summary  |  Top
   public boolean isPlatformSun11W() 


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