public class GeneralUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
fromISO8601DateTime(String dateTime)
Gets a
Calendar instance that represents the input ISO8601
formatted date & time string. |
static Date |
getDate(DateFormat format,
String date)
Returns the
Date encoded in the input string. |
static String |
readToEnd(InputStream inputStream)
Returns the entire contents of the input stream as a string.
|
static void |
sleep(long milliseconds)
Sleeps the input amount of milliseconds.
|
static String |
toISO8601DateTime(Calendar calendar)
Gets a ISO8601 formatted string representing the input date and time.
|
static String |
toRfc1123(Calendar calendar) |
public static String readToEnd(InputStream inputStream) throws IOException
IOExceptionpublic static String toISO8601DateTime(Calendar calendar)
public static Calendar fromISO8601DateTime(String dateTime) throws ParseException
Calendar instance that represents the input ISO8601
formatted date & time string.ParseExceptionpublic static void sleep(long milliseconds)
RuntimeException - Sleep was interrupted.public static Date getDate(DateFormat format, String date)
Date encoded in the input string.Copyright © 2014. All rights reserved.