public class IoBufferFieldSerialiser extends FieldSerialiser
FieldSerialiser.FieldSerialiserFunction| Modifier and Type | Field and Description |
|---|---|
protected IoBuffer |
ioBuffer |
readerFunction, writerFunction| Constructor and Description |
|---|
IoBufferFieldSerialiser(IoBuffer buffer,
FieldSerialiser.FieldSerialiserFunction reader,
FieldSerialiser.FieldSerialiserFunction writer,
Class<?> classPrototype,
Class<?>... classGenericArguments) |
| Modifier and Type | Method and Description |
|---|---|
IoBuffer |
getBuffer() |
equals, getCanonicalName, getClassPrototype, getGenericsPrototypes, getReaderFunction, getSimpleName, getWriterFunction, hashCode, toStringprotected final IoBuffer ioBuffer
public IoBufferFieldSerialiser(IoBuffer buffer, FieldSerialiser.FieldSerialiserFunction reader, FieldSerialiser.FieldSerialiserFunction writer, Class<?> classPrototype, Class<?>... classGenericArguments)
buffer - reference to the IoBuffer to be used. The reseting/rewinding has to be done in the user-level codereader - consumer executed when reading from the back-end serialiser implementationwriter - consumer executed when writing to the back-end serialiser implementationclassPrototype - applicable class/interface prototype reference for which the consumers are applicable (e.g.
example 1: 'List.class' for List<String> or example 2: 'Map.class' for Map<Integer, String>)classGenericArguments - applicable generics definition (e.g. 'String.class' for List<String> or
'Integer.class, String.class' resp.)public IoBuffer getBuffer()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.