public final class SerializableSupport extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
encode(T object)
Encodes an object as XML and then decodes it.
|
static <T> T |
serialize(T object)
Serialize the specified object to bytes, then deserialize it back.
|
public static <T> T serialize(T object)
public static <T> T encode(T object)
T
- the type to operate onobject
- the object to encode/decodeXMLEncoder
,
XMLDecoder
Copyright © 2017. All rights reserved.