hepdata is hosted by Hepforge, IPPP Durham

cedar.hepdata.util
Class HDUtil

java.lang.Object
  extended by cedar.hepdata.util.HDUtil

public class HDUtil
extends java.lang.Object

General Utilities for use with all hepdata packages.

Version:
$Date: 2006-05-03 16:48:22 +0100 (Wed, 03 May 2006) $ $Revision: 592 $
Author:
S Butterworth

Constructor Summary
HDUtil()
           
 
Method Summary
static java.lang.String diff(java.util.Date end, java.util.Date start)
          Utility method to write out a time difference as a String
static java.lang.String getIntForm(java.lang.Double dbl)
           
static java.lang.String stripBrackets(java.lang.String in)
          java.lang.String.replace() won't replace a char with null which is why I have done it this way..
static void toFile(java.lang.String mystr, java.lang.String filedir, java.lang.String filename)
          Writes a String to the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HDUtil

public HDUtil()
Method Detail

diff

public static java.lang.String diff(java.util.Date end,
                                    java.util.Date start)
Utility method to write out a time difference as a String

Parameters:
start - start time
end - end time
Returns:
String time difference in minutes, seconds and milliseconds


getIntForm

public static java.lang.String getIntForm(java.lang.Double dbl)

stripBrackets

public static java.lang.String stripBrackets(java.lang.String in)
java.lang.String.replace() won't replace a char with null which is why I have done it this way..


toFile

public static void toFile(java.lang.String mystr,
                          java.lang.String filedir,
                          java.lang.String filename)
Writes a String to the specified file.

Parameters:
string -
filedir -
filename -


Generated 20060512 1623

HEPData