4A Server -
2.0
|
Utility class (manipulates RFC 3339 dates) More...
Static Public Member Functions | |
static java.util.Date | parseRFC3339Date (String datestring) throws java.text.ParseException, IndexOutOfBoundsException |
static java.util.Date | parseDate (String datestring) throws java.text.ParseException, IndexOutOfBoundsException |
static java.util.Date | parseTime (String datestring) throws java.text.ParseException, IndexOutOfBoundsException |
static String | toRFC3339Date (Date date) |
static String | toRFC3339DateOnly (Date date) |
static String | toRFC3339DateOnlyWTZ (Date date) |
static String | toRFC3339Time (Date date) |
static int | minimum (int a, int b, int c) |
static int | levenshtein (String s, String t) |
static String | escapeForXml (String str) |
static String | parseTimeZoneID (String date) |
static String | toHTMLString (String source) |
Static Public Attributes | |
static final int | RESERVED_CHARS = 0 |
static final int | TEXTUAL_CHARS = 1 |
static final int | NUMERAL_CHARS = 2 |
static final int | TEXTUAL_MAX_SIZE = 8 |
static final int | NUMERAL_MAX_SIZE = 4 |
static final String | START_OF_TEXTUAL = "&" |
static final String | START_OF_NUMERAL = "&#" |
static final String | END_OF_MARK = ";" |
static final ArrayList< String > | AMP_LIST = new ArrayList<String>(Arrays.asList("&",START_OF_TEXTUAL + "amp" + END_OF_MARK,START_OF_NUMERAL + "38" + END_OF_MARK)) |
static final ArrayList< String > | APOS_LIST = new ArrayList<String>(Arrays.asList("'",START_OF_TEXTUAL + "apos" + END_OF_MARK,START_OF_NUMERAL + "39" + END_OF_MARK)) |
static final ArrayList< String > | QUOT_LIST = new ArrayList<String>(Arrays.asList("\"",START_OF_TEXTUAL + "quot" + END_OF_MARK,START_OF_NUMERAL + "34" + END_OF_MARK)) |
static final ArrayList< String > | GT_LIST = new ArrayList<String>(Arrays.asList(">",START_OF_TEXTUAL + "gt" + END_OF_MARK,START_OF_NUMERAL + "62" + END_OF_MARK)) |
static final ArrayList< String > | LT_LIST = new ArrayList<String>(Arrays.asList("<",START_OF_TEXTUAL + "lt" + END_OF_MARK,START_OF_NUMERAL + "60" + END_OF_MARK)) |
static final ArrayList < ArrayList< String > > | RESERVED_HTML_CHARS = new ArrayList<ArrayList<String>>() |
Package Functions | |
RESERVED_HTML_CHARS. | add (APOS_LIST) |
RESERVED_HTML_CHARS. | add (QUOT_LIST) |
RESERVED_HTML_CHARS. | add (GT_LIST) |
RESERVED_HTML_CHARS. | add (LT_LIST) |
Static Package Attributes | |
static | |
Static Private Member Functions | |
static boolean | isSpecial (String source) |
Utility class (manipulates RFC 3339 dates)
Utility class (manipulates RFC 3339 dates and contains other utility methods)
|
package |
|
package |
|
package |
|
package |
|
static |
|
staticprivate |
|
static |
Compute Levenshtein distance Adapted from http://www.merriampark.com/ld.htm
s | String s |
t | String t |
Definition at line 307 of file Util.java.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticpackage |
|
static |
|
static |