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 ObjectSerializerjava.io.IOExceptionpublic <T> T deserialize(byte[] bytes, java.lang.Class<T> type, boolean decompress) throws java.io.IOException
deserialize in interface ObjectSerializerjava.io.IOExceptionpublic <T> boolean accepts(java.lang.Class<T> type)
accepts in interface ObjectSerializerpublic <T> byte[] serializeMap(java.util.Map<java.lang.String,T> map, boolean compress) throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.Map<java.lang.String,T> deserializeMap(byte[] bytes, boolean decompress) throws java.io.IOException
java.io.IOExceptionpublic <T> byte[] serializeList(java.util.List<T> list, boolean compress) throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.List<T> deserializeList(byte[] bytes, boolean decompress) throws java.io.IOException
java.io.IOExceptionCopyright © 2007-2021 Cascading Maintainers. All Rights Reserved.