public final class IOUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
compress(byte[] data,
int offset,
int length) |
static byte[] |
decompress(byte[] data,
int offset,
int length) |
static Object |
deserialize(byte[] data) |
static <T> T |
deserialize(com.fasterxml.jackson.databind.ObjectMapper mapper,
String content,
Class<T> clazz) |
static String |
getResourceAsString(Class clazz,
String name) |
static Properties |
loadProperties(Class clazz,
String name) |
static void |
logProperties(String name,
Properties properties) |
static byte[] |
serialize(Object object) |
static String |
serialize(com.fasterxml.jackson.databind.ObjectMapper mapper,
Object object) |
public static Properties loadProperties(Class clazz, String name)
public static void logProperties(String name, Properties properties)
public static byte[] serialize(Object object)
public static Object deserialize(byte[] data)
public static String serialize(com.fasterxml.jackson.databind.ObjectMapper mapper, Object object)
public static <T> T deserialize(com.fasterxml.jackson.databind.ObjectMapper mapper,
String content,
Class<T> clazz)
public static byte[] compress(byte[] data,
int offset,
int length)
public static byte[] decompress(byte[] data,
int offset,
int length)
Copyright © 2015. All rights reserved.