Class NamedCsvRecordHandler


public final class NamedCsvRecordHandler extends AbstractCsvCallbackHandler<NamedCsvRecord>
A callback handler that returns a NamedCsvRecord for each record.

This implementation is stateful and must not be reused.

  • Field Details

    • EMPTY_HEADER

      private static final String[] EMPTY_HEADER
  • Constructor Details

    • NamedCsvRecordHandler

      public NamedCsvRecordHandler()
      Constructs a new NamedCsvRecordHandler with an empty header.
    • NamedCsvRecordHandler

      public NamedCsvRecordHandler(List<String> header)
      Constructs a new NamedCsvRecordHandler with the given header.
      Parameters:
      header - the header, must not be null or contain null elements
      Throws:
      NullPointerException - if null is passed
    • NamedCsvRecordHandler

      public NamedCsvRecordHandler(String... header)
      Constructs a new NamedCsvRecordHandler with the given header.
      Parameters:
      header - the header, must not be null or contain null elements
      Throws:
      NullPointerException - if null is passed
    • NamedCsvRecordHandler

      public NamedCsvRecordHandler(FieldModifier fieldModifier)
      Constructs a new NamedCsvRecordHandler with the given field modifier.
      Parameters:
      fieldModifier - the field modifier, must not be null
      Throws:
      NullPointerException - if null is passed
    • NamedCsvRecordHandler

      public NamedCsvRecordHandler(FieldModifier fieldModifier, List<String> header)
      Constructs a new NamedCsvRecordHandler with the given header and field modifier.
      Parameters:
      fieldModifier - the field modifier, must not be null
      header - the header, must not be null or contain null elements
      Throws:
      NullPointerException - if null is passed
    • NamedCsvRecordHandler

      public NamedCsvRecordHandler(FieldModifier fieldModifier, String... header)
      Constructs a new NamedCsvRecordHandler with the given header and field modifier.
      Parameters:
      fieldModifier - the field modifier, must not be null
      header - the header, must not be null or contain null elements
      Throws:
      NullPointerException - if null is passed
  • Method Details