org.fosstrak.llrp.commander.util
Class Utility

java.lang.Object
  extended by org.fosstrak.llrp.commander.util.Utility

public class Utility
extends java.lang.Object

helper class that holds utility routines.

Author:
sawielan

Constructor Summary
Utility()
           
 
Method Summary
static java.lang.String findWithFullPath(java.lang.String fileName)
          searches the full system path for this resource.
static java.lang.String stackTraceNice(java.lang.Exception e)
          creates a nice string representation of a stack trace.
 
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

stackTraceNice

public static java.lang.String stackTraceNice(java.lang.Exception e)
creates a nice string representation of a stack trace.

Parameters:
e - the exception to be converted to a string.
Returns:
the exception represented as a string.

findWithFullPath

public static java.lang.String findWithFullPath(java.lang.String fileName)
searches the full system path for this resource.

Parameters:
fileName - the name of the resource.
Returns:
an absolute path to the resource.


Copyright © 2009. All Rights Reserved.