public class CSAppUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CSAppUtils.DateComapareType
Type to compare dates.
|
| Constructor and Description |
|---|
CSAppUtils()
Instantiates a new Cs app utils.
|
| Modifier and Type | Method and Description |
|---|---|
static org.json.JSONObject |
getJsonFromCacheFile(File file)
To retrieve data from cache.
|
String |
getMD5FromString(String value)
To encrypt given value.
|
boolean |
getResponseTimeFromCacheFile(File file,
long time)
To check if required response within given time window available in cache
|
static Calendar |
parseDate(String date,
String dateFormat,
TimeZone timeZone)
Converts the given date to the user's timezone.
|
public static org.json.JSONObject getJsonFromCacheFile(File file)
file - cache file.public static Calendar parseDate(String date, String dateFormat, TimeZone timeZone) throws ParseException
date - StringdateFormat - StringtimeZone - StringParseException - CSAppUtils.parseDate(dateString, "yyyy-MM-dd'T'HH:mm:ssZ", TimeZone.getTimeZone("GMT")); public boolean getResponseTimeFromCacheFile(File file, long time)
file - cache file.time - timeCopyright © 2021 Contentstack.. All rights reserved.