com.ths.csa
Class CSAUtils

java.lang.Object
  |
  +--com.ths.csa.CSAUtils

public class CSAUtils
extends java.lang.Object


Field Summary
static java.text.DateFormat DateAndTimeFormatter
          A standard date formatter and parser.
static java.text.DateFormat TimeFormatter
          A standard time-only formatter and parser.
 
Constructor Summary
CSAUtils()
           
 
Method Summary
static boolean ContainsXMLSpecialCharacters(java.lang.String source)
          Returns true if the source string contains XML special characters.
static java.lang.String ConvertMinutesFractionToTimeString(double minutes)
          Returns an en_US time String based on the minutes argument.
static java.lang.String EatWhiteSpace(java.lang.String source)
          Uses the default StringTokenizer delimiters.
static java.lang.String ReplaceXMLSpecialCharacters(java.lang.String source)
          Replaces the predefined XML special characters with the corresponding entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DateAndTimeFormatter

public static final java.text.DateFormat DateAndTimeFormatter
A standard date formatter and parser. Uses:
  1. DateFormat.LONG
  2. DateFormat.LONG
  3. Locale.getDefault()

TimeFormatter

public static final java.text.DateFormat TimeFormatter
A standard time-only formatter and parser. Uses:
  1. DateFormat.FULL
  2. Locale.getDefault()
Constructor Detail

CSAUtils

public CSAUtils()
Method Detail

EatWhiteSpace

public static java.lang.String EatWhiteSpace(java.lang.String source)
Uses the default StringTokenizer delimiters.

ConvertMinutesFractionToTimeString

public static java.lang.String ConvertMinutesFractionToTimeString(double minutes)
Returns an en_US time String based on the minutes argument.

ReplaceXMLSpecialCharacters

public static java.lang.String ReplaceXMLSpecialCharacters(java.lang.String source)
Replaces the predefined XML special characters with the corresponding entity.
Character Reference
&
&
<
&lt;
>
&gt;
"
&quot;
'
&apos;

ContainsXMLSpecialCharacters

public static boolean ContainsXMLSpecialCharacters(java.lang.String source)
Returns true if the source string contains XML special characters.
&, <, >, ', "