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