org.sf.jlaunchpad.util
Class CommonUtil

java.lang.Object
  extended by org.sf.jlaunchpad.util.CommonUtil

public class CommonUtil
extends java.lang.Object

This is the class for holding common utilities.

Version:
1.0 02/19/2006
Author:
Alexander Shvets

Constructor Summary
CommonUtil()
           
 
Method Summary
 java.lang.String calculateJavaSpecificationVersion(int majorVersion)
          1.1: 00 2D (= 45) 1.2: 00 2E (= 46) 1.3: 00 2F (= 47) 1.4: 00 30 (= 48) 1.5: 00 31 (= 49) 1.6: 00 32 (= 50)
static java.io.File getCompilerJar()
          Gets the compiler jar file.
static java.lang.String getJavaSpecificationVersion()
          Sets up the java specification version.
static boolean isGuiMode()
          Checks if the Java is working in AWT or Swing mode.
static void printThreads()
          Prints threads list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonUtil

public CommonUtil()
Method Detail

isGuiMode

public static boolean isGuiMode()
Checks if the Java is working in AWT or Swing mode.

Returns:
true if the Java is working in AWT or Swing mode; false otherwise

printThreads

public static void printThreads()
Prints threads list.


getCompilerJar

public static java.io.File getCompilerJar()
Gets the compiler jar file.

Returns:
the compiler jar file

getJavaSpecificationVersion

public static java.lang.String getJavaSpecificationVersion()
                                                    throws java.io.IOException
Sets up the java specification version.

Returns:
java specification version
Throws:
java.io.IOException - I/O Exception

calculateJavaSpecificationVersion

public java.lang.String calculateJavaSpecificationVersion(int majorVersion)
1.1: 00 2D (= 45) 1.2: 00 2E (= 46) 1.3: 00 2F (= 47) 1.4: 00 30 (= 48) 1.5: 00 31 (= 49) 1.6: 00 32 (= 50)

Parameters:
majorVersion - the major version
Returns:
java specification version


Copyright © 2007-2008 Dream Programs Inc.. All Rights Reserved.