public class OxmSerializer extends Object implements org.springframework.beans.factory.InitializingBean, RedisSerializer<Object>
Marshaller
and Unmarshaller. Note:Null objects are serialized as empty arrays and vice versa.| Constructor and Description |
|---|
OxmSerializer() |
OxmSerializer(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.Unmarshaller unmarshaller) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Object |
deserialize(byte[] bytes)
Deserialize an object from the given binary data.
|
byte[] |
serialize(Object t)
Serialize the given object to binary data.
|
void |
setMarshaller(org.springframework.oxm.Marshaller marshaller) |
void |
setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) |
public OxmSerializer()
public OxmSerializer(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.Unmarshaller unmarshaller)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void setMarshaller(org.springframework.oxm.Marshaller marshaller)
marshaller - The marshaller to set.public void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
unmarshaller - The unmarshaller to set.public Object deserialize(byte[] bytes) throws SerializationException
RedisSerializerdeserialize in interface RedisSerializer<Object>bytes - object binary representationSerializationExceptionpublic byte[] serialize(Object t) throws SerializationException
RedisSerializerserialize in interface RedisSerializer<Object>t - object to serializeSerializationExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.