|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdel.icio.us.DeliciousUtils
DeliciousUtilities
Field Summary | |
static java.lang.String |
DELICIOUS_DATE_FORMAT
|
static java.lang.String |
LINE_SEPARATOR
|
static java.lang.String |
UTC_DATE_FORMAT
|
static java.lang.String |
UTF_8
|
Constructor Summary | |
DeliciousUtils()
|
Method Summary | |
static boolean |
checkNullOrBlank(java.lang.String input)
Check to see if the input is null or blank |
static java.lang.String |
encodeURLForDelicious(java.lang.String input)
Encode input with only for ?, &, and # characters |
static java.lang.String |
encodeUTF8(java.lang.String input)
Encode input using UTF-8 |
static java.lang.String |
encodeUTF8(java.lang.String input,
boolean keepSpaces)
Encod input as UTF-8 while converting %20 (space) to a space |
static java.util.Date |
getDateFromUTCString(java.lang.String time)
Parse a date from a UTC string |
static java.lang.String |
getDeliciousDate(java.util.Date date)
Return a date in del.icio.us style (yyyy-MM-dd) |
static java.lang.String |
getUTCDate(java.util.Date date)
Return a date in UTC style |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String UTF_8
public static final java.lang.String LINE_SEPARATOR
public static final java.lang.String UTC_DATE_FORMAT
public static final java.lang.String DELICIOUS_DATE_FORMAT
Constructor Detail |
public DeliciousUtils()
Method Detail |
public static java.lang.String getUTCDate(java.util.Date date)
date
- Date
public static java.lang.String getDeliciousDate(java.util.Date date)
date
- Date
public static java.util.Date getDateFromUTCString(java.lang.String time)
time
- Input string of form yyyy-MM-ddTHH:mm:ssZ
null
if error in
parsingpublic static boolean checkNullOrBlank(java.lang.String input)
null
or blank
input
- Input
true
if input is null or blank, false
otherwisepublic static java.lang.String encodeUTF8(java.lang.String input)
input
- Input
null
if input was nullpublic static java.lang.String encodeUTF8(java.lang.String input, boolean keepSpaces)
input
- InputkeepSpaces
- true
if spaces should be preserved, false
otherwise
null
if input was nullpublic static java.lang.String encodeURLForDelicious(java.lang.String input)
input
- Input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |