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

  Summary

class  PlatformInfoPlain
     extends java.lang.Object
     implements com.jconfig.PlatformInfoI
{
          // Fields 7
     private String APIVersion;
     private String interpreterVersion;
     private String osArch;
     private String osName;
     private String osVersion;
     private String vendor;
     private VersionNumber versNum;

          // Constructors 1
     public PlatformInfoPlain();

          // Methods 11
     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();
}

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


  Constructors

· PlatformInfoPlain

Summary  |  Top

   public PlatformInfoPlain() 


  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


· 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