cct.tools
Class Utils

java.lang.Object
  extended by cct.tools.Utils

public class Utils
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private) static java.lang.String CCT_DIRECTORY
           
(package private) static java.lang.String CUSTOM_PROPERTY_FILE
           
(package private) static java.lang.String DIVIDER
           
 
Method Summary
static java.lang.String getCCTDirectory()
          Checks if the ~/CCT_DIRECTORY (~/.cct) directory exists.
static java.lang.String getCustomPropertiesFile()
           
static java.lang.String getPreference(java.lang.Object object, java.lang.String Key)
           
static java.lang.String getResourceAsString(java.lang.String resource)
           
static java.lang.String getSystemInfoAsString()
           
static java.lang.String packageInfoAsString(java.lang.ClassLoader classLoader, java.lang.String pkgName, java.lang.String className)
           
static void printFloatVector(int n, float[] v)
           
static void printFloatVectors(int n, float[] v1, float[] v2)
           
static java.util.LinkedHashMap reverseLinkedHashMap(java.util.LinkedHashMap toReverse)
           
static void savePreference(java.lang.Object object, java.lang.String Key, java.lang.String value)
           
static java.util.ArrayList toSimpleList(java.util.LinkedHashMap complexList, java.util.ArrayList simpleList)
           
static java.util.HashMap toSimpleList(java.util.LinkedHashMap complexList, java.util.HashMap simpleList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOM_PROPERTY_FILE

static final java.lang.String CUSTOM_PROPERTY_FILE
See Also:
Constant Field Values

DIVIDER

static final java.lang.String DIVIDER
See Also:
Constant Field Values

CCT_DIRECTORY

static java.lang.String CCT_DIRECTORY
Method Detail

getCustomPropertiesFile

public static java.lang.String getCustomPropertiesFile()

toSimpleList

public static java.util.ArrayList toSimpleList(java.util.LinkedHashMap complexList,
                                               java.util.ArrayList simpleList)

toSimpleList

public static java.util.HashMap toSimpleList(java.util.LinkedHashMap complexList,
                                             java.util.HashMap simpleList)

getCCTDirectory

public static java.lang.String getCCTDirectory()
                                        throws java.lang.Exception
Checks if the ~/CCT_DIRECTORY (~/.cct) directory exists. If not, it creates one. Returns absolute path of the directory

Throws:
java.lang.Exception

printFloatVector

public static void printFloatVector(int n,
                                    float[] v)

printFloatVectors

public static void printFloatVectors(int n,
                                     float[] v1,
                                     float[] v2)

getPreference

public static java.lang.String getPreference(java.lang.Object object,
                                             java.lang.String Key)

savePreference

public static void savePreference(java.lang.Object object,
                                  java.lang.String Key,
                                  java.lang.String value)

getResourceAsString

public static java.lang.String getResourceAsString(java.lang.String resource)

getSystemInfoAsString

public static java.lang.String getSystemInfoAsString()

packageInfoAsString

public static java.lang.String packageInfoAsString(java.lang.ClassLoader classLoader,
                                                   java.lang.String pkgName,
                                                   java.lang.String className)

reverseLinkedHashMap

public static java.util.LinkedHashMap reverseLinkedHashMap(java.util.LinkedHashMap toReverse)