public interface ObjectSerializer<T>
A serializer which can round-trip POJOs to bytes for storage off heap or on disk. This serializer does not assume knowledge about size of objects and can serialize objects of variable size.
FixedSizeObjectSerializer| Modifier and Type | Method and Description |
|---|---|
T |
read(LongByteBuffer theBuf)
Read an object from the provided buffer
|
default boolean |
supportsNull()
Indicates whether or not this object can serialize/deserialize null values
|
void |
write(T theObj,
LongByteBuffer theBuf)
Write the provided object to the buffer
|
default boolean supportsNull()
T read(LongByteBuffer theBuf)
theBuf - the buffervoid write(T theObj, LongByteBuffer theBuf)
theObj - the object to writetheBuf - the buffer to write toCopyright © 2010-2016 Stardog Union. All Rights Reserved.