public class Helpers extends Object
| Modifier and Type | Field and Description |
|---|---|
static Date |
baseDate |
static DateTimeFormatter |
dateTimeFormatter |
static ThreadLocal<Boolean> |
isV4
Oftentimes we have no way of communicating which version we are using, say in an adapter that
is buried deep in the internals of JAXB marshalling
|
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static String |
base64FromUuid(UUID uuid) |
static byte[] |
decodeBase64Content(byte[] content) |
static byte[] |
decodeBase64Content(byte[] content,
boolean isCompressed) |
static String |
encodeBase64Content(byte[] value) |
static String |
encodeBase64Content(byte[] value,
boolean isCompressed) |
static String |
fromBoolean(Boolean value) |
static String |
fromDate(Date value)
Formats the value according to the value of
isV4 |
static String |
fromDateV3(Date value) |
static String |
fromDateV4(Date value) |
static String |
hexStringFromBase64(String base64) |
static String |
hexStringFromUuid(UUID uuid) |
static Boolean |
toBoolean(String value) |
static byte[] |
toBytes(int value,
ByteOrder byteOrder) |
static byte[] |
toBytes(long value,
ByteOrder byteOrder) |
static Date |
toDate(String value) |
static byte[] |
unzipBinaryContent(byte[] content) |
static UUID |
uuidFromBase64(String base64) |
static byte[] |
zipBinaryContent(byte[] value) |
public static ThreadLocal<Boolean> isV4
public static final DateTimeFormatter dateTimeFormatter
public static final Date baseDate
public static String fromDate(Date value)
isV4value - a datepublic static byte[] decodeBase64Content(byte[] content)
public static byte[] decodeBase64Content(byte[] content,
boolean isCompressed)
public static byte[] unzipBinaryContent(byte[] content)
public static String encodeBase64Content(byte[] value)
public static String encodeBase64Content(byte[] value, boolean isCompressed)
public static byte[] zipBinaryContent(byte[] value)
public static byte[] toBytes(long value,
ByteOrder byteOrder)
public static byte[] toBytes(int value,
ByteOrder byteOrder)
Copyright © 2025. All rights reserved.