Package kong.unirest.core
Class Util
java.lang.Object
kong.unirest.core.Util
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateTimeFormatter
(package private) static final List
<DateTimeFormatter> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String
(package private) static void
freezeClock
(Instant instant) (package private) static FileInputStream
getFileInputStream
(String location) (package private) static boolean
(package private) static Instant
now()
(package private) static String
(package private) static void
(package private) static <T> Stream
<T> static String
toBasicAuthValue
(String username, String password) static <T,
M extends T>
Optional<M> static ZonedDateTime
tryParseToDate
(String text)
-
Field Details
-
DEFAULT_PATTERN
-
FORMATS
-
clock
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
freezeClock
-
resetClock
static void resetClock() -
now
-
tryCast
-
stream
-
nullToEmpty
-
encode
-
isNullOrEmpty
-
toBasicAuthValue
-
getFileInputStream
-
tryParseToDate
-