Class Utils
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Utils
-
public class Utils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectReader
jsonReader
static com.fasterxml.jackson.databind.ObjectWriter
jsonWriter
static com.fasterxml.jackson.databind.ObjectReader
msgpReader
static com.fasterxml.jackson.databind.ObjectWriter
msgpWriter
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getDateString(Date date)
Get the date formatted as: 2011-12-03T10:15:30Zstatic Date
parseDate(String dateString)
Parse the date from String.
-
-
-
Field Detail
-
jsonWriter
public static final com.fasterxml.jackson.databind.ObjectWriter jsonWriter
-
jsonReader
public static final com.fasterxml.jackson.databind.ObjectReader jsonReader
-
msgpWriter
public static final com.fasterxml.jackson.databind.ObjectWriter msgpWriter
-
msgpReader
public static final com.fasterxml.jackson.databind.ObjectReader msgpReader
-
-
Method Detail
-
parseDate
public static Date parseDate(String dateString) throws ParseException
Parse the date from String. The time-zone should be Z- Parameters:
dateString
- YYYY-MM-DDTHH:MM:SSZ e.g. 2011-12-03T10:15:30Z- Returns:
- Date object
- Throws:
ParseException
-
-