public final class SerializationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static ObjectDataInputStream |
createObjectDataInputStream(InputStream in,
InternalSerializationService ss) |
static ObjectDataOutputStream |
createObjectDataOutputStream(OutputStream out,
InternalSerializationService ss) |
static int |
getPortableVersion(Portable portable,
int defaultVersion) |
static <T> List<T> |
readNullableList(ObjectDataInput in)
Read a list written by
writeNullableList(List, ObjectDataOutput)
It does not gurantee to use the same implementation of a list as was written
into the stream. |
static <T> void |
writeNullableList(List<T> list,
ObjectDataOutput out)
Write items from a list into a ObjectDataOutput.
|
public static int getPortableVersion(Portable portable, int defaultVersion)
public static ObjectDataOutputStream createObjectDataOutputStream(OutputStream out, InternalSerializationService ss)
public static ObjectDataInputStream createObjectDataInputStream(InputStream in, InternalSerializationService ss)
public static <T> void writeNullableList(List<T> list, ObjectDataOutput out) throws IOException
readNullableList(ObjectDataInput)
T
- type of the listlist
- list to write into the outputout
- the output to useIOException
public static <T> List<T> readNullableList(ObjectDataInput in) throws IOException
writeNullableList(List, ObjectDataOutput)
It does not gurantee to use the same implementation of a list as was written
into the stream.T
- type of itemsin
- data input to read fromIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.