Class Utility

java.lang.Object
  extended byUtility

public class Utility
extends java.lang.Object

   
 Provides some useful static methods
 


Constructor Summary
Utility()
           
 
Method Summary
static java.lang.String byteArrayToString(byte[] msg)
          Convert a byte[] to a string
static long fishTime()
          Return System time in microseconds
static byte[] stringToByteArray(java.lang.String msg)
          Convert a string to a byte[]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

fishTime

public static long fishTime()
Return System time in microseconds


stringToByteArray

public static byte[] stringToByteArray(java.lang.String msg)
Convert a string to a byte[]

Parameters:
msg - The string to convert
Returns:
The byte[] that the string was converted to

byteArrayToString

public static java.lang.String byteArrayToString(byte[] msg)
Convert a byte[] to a string

Parameters:
msg - The byte[] to convert
Returns:
The converted String