Class IoBufferFieldSerialiser

    • Field Detail

      • ioBuffer

        protected final IoBuffer ioBuffer
    • Constructor Detail

      • IoBufferFieldSerialiser

        public IoBufferFieldSerialiser​(IoBuffer buffer,
                                       FieldSerialiser.FieldSerialiserFunction reader,
                                       FieldSerialiser.FieldSerialiserFunction writer,
                                       java.lang.Class<?> classPrototype,
                                       java.lang.Class<?>... classGenericArguments)
        Parameters:
        buffer - reference to the IoBuffer to be used. The reseting/rewinding has to be done in the user-level code
        reader - consumer executed when reading from the back-end serialiser implementation
        writer - consumer executed when writing to the back-end serialiser implementation
        classPrototype - 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.)
    • Method Detail

      • getBuffer

        public IoBuffer getBuffer()
        Returns:
        the ioBuffer object used by this serialiser