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 voidfreezeClock(Instant instant) (package private) static FileInputStreamgetFileInputStream(String location) (package private) static boolean(package private) static Instantnow()(package private) static String(package private) static void(package private) static <T> Stream<T> static StringtoBasicAuthValue(String username, String password) static <T,M extends T>
Optional<M> static ZonedDateTimetryParseToDate(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
-