public class JavaObjectSerializer extends Object implements ObjectSerializer
ObjectSerializer
.OBJECT_SERIALIZER_PROPERTY
Constructor and Description |
---|
JavaObjectSerializer() |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
accepts(Class<T> type) |
<T> T |
deserialize(byte[] bytes,
Class<T> type,
boolean decompress) |
<T> List<T> |
deserializeList(byte[] bytes,
boolean decompress) |
<T> Map<String,T> |
deserializeMap(byte[] bytes,
boolean decompress) |
<T> byte[] |
serialize(T object,
boolean compress) |
<T> byte[] |
serializeList(List<T> list,
boolean compress) |
<T> byte[] |
serializeMap(Map<String,T> map,
boolean compress) |
public JavaObjectSerializer()
public <T> byte[] serialize(T object, boolean compress) throws IOException
serialize
in interface ObjectSerializer
IOException
public <T> T deserialize(byte[] bytes, Class<T> type, boolean decompress) throws IOException
deserialize
in interface ObjectSerializer
IOException
public <T> boolean accepts(Class<T> type)
accepts
in interface ObjectSerializer
public <T> byte[] serializeMap(Map<String,T> map, boolean compress) throws IOException
IOException
public <T> Map<String,T> deserializeMap(byte[] bytes, boolean decompress) throws IOException
IOException
public <T> byte[] serializeList(List<T> list, boolean compress) throws IOException
IOException
public <T> List<T> deserializeList(byte[] bytes, boolean decompress) throws IOException
IOException
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.