Modifier and Type | Method and Description |
---|---|
static byte[] |
deserializeBytes(DataInputStream in) |
static <K,V> Map<K,V> |
deserializeMap(DataInputStream in,
FunctionWithException<DataInputStream,K,IOException> keyDeserializer,
FunctionWithException<DataInputStream,V,IOException> valueDeserializer) |
static <T> T |
deserializeObject(DataInputStream in) |
static <T> Set<T> |
deserializeSet(DataInputStream in,
FunctionWithException<DataInputStream,T,IOException> deserializer) |
static void |
serializeBytes(DataOutputStream out,
byte[] bytes) |
static <K,V> void |
serializeMap(DataOutputStream out,
Map<K,V> map,
BiConsumerWithException<DataOutputStream,K,IOException> keySerializer,
BiConsumerWithException<DataOutputStream,V,IOException> valueSerializer) |
static void |
serializeObject(DataOutputStream out,
Object obj) |
static <T> void |
serializeSet(DataOutputStream out,
Set<T> set,
BiConsumerWithException<DataOutputStream,T,IOException> serializer) |
public static void serializeBytes(DataOutputStream out, byte[] bytes) throws IOException
IOException
public static byte[] deserializeBytes(DataInputStream in) throws IOException
IOException
public static void serializeObject(DataOutputStream out, Object obj) throws IOException
IOException
public static <T> T deserializeObject(DataInputStream in) throws IOException
IOException
public static <T> void serializeSet(DataOutputStream out, Set<T> set, BiConsumerWithException<DataOutputStream,T,IOException> serializer) throws IOException
IOException
public static <T> Set<T> deserializeSet(DataInputStream in, FunctionWithException<DataInputStream,T,IOException> deserializer) throws IOException
IOException
public static <K,V> void serializeMap(DataOutputStream out, Map<K,V> map, BiConsumerWithException<DataOutputStream,K,IOException> keySerializer, BiConsumerWithException<DataOutputStream,V,IOException> valueSerializer) throws IOException
IOException
public static <K,V> Map<K,V> deserializeMap(DataInputStream in, FunctionWithException<DataInputStream,K,IOException> keyDeserializer, FunctionWithException<DataInputStream,V,IOException> valueDeserializer) throws IOException
IOException
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.