public class Util extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static double |
atof(java.lang.String s) |
static int |
atoi(java.lang.String s) |
static void |
closeQuietly(java.io.Closeable c) |
static void |
copyfile(java.lang.String source,
java.lang.String destination) |
static double[] |
copyOf(double[] original,
int newLength) |
static int[] |
copyOf(int[] original,
int newLength) |
static void |
endTicer(org.apache.log4j.Logger logger,
long startTime,
int nTicxRow,
int inTic,
int subject) |
static boolean |
equals(double[] a,
double[] a2) |
static int |
simpleTicer(org.apache.log4j.Logger logger,
long startTime,
int nTicxRow,
int inTic,
int subject) |
static void |
startTicer(org.apache.log4j.Logger logger,
long startTime,
int nTicxRow,
int subject) |
static java.lang.String |
xmlEscape(java.lang.String str) |
public Util()
public static java.lang.String xmlEscape(java.lang.String str)
public static int simpleTicer(org.apache.log4j.Logger logger, long startTime, int nTicxRow, int inTic, int subject)
public static void startTicer(org.apache.log4j.Logger logger, long startTime, int nTicxRow, int subject)
public static void endTicer(org.apache.log4j.Logger logger, long startTime, int nTicxRow, int inTic, int subject)
public static void copyfile(java.lang.String source, java.lang.String destination) throws MaltChainedException
MaltChainedException
public static double atof(java.lang.String s)
s
- the string to parse for the double valuejava.lang.IllegalArgumentException
- if s is empty or represents NaN or Infinityjava.lang.NumberFormatException
- see Double.parseDouble(String)
public static int atoi(java.lang.String s) throws java.lang.NumberFormatException
s
- the string to parse for the integer valuejava.lang.IllegalArgumentException
- if s is emptyjava.lang.NumberFormatException
- see Integer.parseInt(String)
public static void closeQuietly(java.io.Closeable c)
public static double[] copyOf(double[] original, int newLength)
public static int[] copyOf(int[] original, int newLength)
public static boolean equals(double[] a, double[] a2)
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.