Interface RowWriterProcessor<T>

Type Parameters:
T - the type that is converted by this implementation into an Object array, suitable for writing to the output.
All Known Implementing Classes:
BeanWriterProcessor, ObjectRowWriterProcessor, OutputValueSwitch, RowWriterProcessorSwitch

public interface RowWriterProcessor<T>
The essential callback interface to convert input objects into a manageable format for writing. Used by any writer that extends AbstractWriter.

When writing to an output, the writer will obtain the RowWriterProcessor from CommonWriterSettings.getRowWriterProcessor(), and invoke write(Object, NormalizedString[], int[]) to convert the input to an array of objects. This array of objects will in turn be handed to the writer to produce a record in the expected format.

univocity-parsers provides some useful default implementations of this interface in the package com.univocity.parsers.common.processor, namely:

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    write(T input, NormalizedString[] headers, int[] indexesToWrite)
    Converts the given input into an Object array that is suitable for writing.