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 serializeList(DataOutputStream out, List<T> list, BiConsumerWithException<DataOutputStream,T,IOException> serializer) throws IOException
IOException
public static <T> List<T> deserializeList(DataInputStream in, FunctionWithException<DataInputStream,T,IOException> deserializer) 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.