com.fdsapi
Class Utils

java.lang.Object
  |
  +--com.fdsapi.Utils

public class Utils
extends java.lang.Object

Miscellaneous utility classes.

View Code


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String[] convert(java.lang.Object[] data)
          Converts a 1 dimensional array of objects to a 1 dimensional array of Strings.
static java.lang.Object[] copy(java.lang.Object[] originalRow)
          Called when all columns in a 1 dimentional array should be copied
static java.lang.Object[][] copy(java.lang.Object[][] data)
          Duplicates all entries of the 2 dim array, and puts the original pointer of the data in the slots
static boolean getDebug()
           
static java.lang.String[][] getParameters(HttpServletRequest request)
           
static java.lang.String getREMatch(java.lang.String reStr, java.lang.String sourceStr, int matchNum)
           
static boolean isEmpty(java.lang.String str)
          returns true if the argument is null or the empty String.
static void log(java.lang.Object msg)
           
static void logDebug(java.lang.Object msg)
           
static void setDebug(boolean debugFlag)
           
static java.lang.String[] split(java.lang.String reStr, java.lang.String splitStr)
          Using a regular expression - split the passed in string along token boundaries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

isEmpty

public static boolean isEmpty(java.lang.String str)
returns true if the argument is null or the empty String.


getParameters

public static java.lang.String[][] getParameters(HttpServletRequest request)

convert

public static java.lang.String[] convert(java.lang.Object[] data)
Converts a 1 dimensional array of objects to a 1 dimensional array of Strings.


copy

public static java.lang.Object[][] copy(java.lang.Object[][] data)
Duplicates all entries of the 2 dim array, and puts the original pointer of the data in the slots


copy

public static java.lang.Object[] copy(java.lang.Object[] originalRow)
Called when all columns in a 1 dimentional array should be copied


split

public static java.lang.String[] split(java.lang.String reStr,
                                       java.lang.String splitStr)
Using a regular expression - split the passed in string along token boundaries


getREMatch

public static java.lang.String getREMatch(java.lang.String reStr,
                                          java.lang.String sourceStr,
                                          int matchNum)

setDebug

public static void setDebug(boolean debugFlag)

getDebug

public static boolean getDebug()

log

public static void log(java.lang.Object msg)

logDebug

public static void logDebug(java.lang.Object msg)