tppt.util
Class Utils

java.lang.Object
  |
  +--tppt.util.Utils

public class Utils
extends java.lang.Object

A Utility class for easy manupilation of file names and extensions.

Version:
1.1 04/25/00
Author:
Helen Yi Ren, last modified by Jiang Yin --- getExtension to accept tokens other than '.'

Field Summary
static java.lang.String exp
          the Experiment Setting file extension
static java.lang.String wri
          the Performance Measurement Report file extension
 
Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getExtension(java.io.File f)
          Gets the extension of a file.
static java.lang.String getExtension(java.lang.String f, char token)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

wri

public static final java.lang.String wri
the Performance Measurement Report file extension

exp

public static final java.lang.String exp
the Experiment Setting file extension
Constructor Detail

Utils

public Utils()
Method Detail

getExtension

public static java.lang.String getExtension(java.io.File f)
Gets the extension of a file.

Parameters:
f - a user selected file
Returns:
the extension of the file

getExtension

public static java.lang.String getExtension(java.lang.String f,
                                            char token)