com.univocity.parsers.common.fields
Interface FieldSelector

All Known Implementing Classes:
AllIndexesSelector, ExcludeFieldEnumSelector, ExcludeFieldIndexSelector, ExcludeFieldNameSelector, FieldEnumSelector, FieldIndexSelector, FieldNameSelector

public interface FieldSelector

Interface used to identify classes capable of selecting fields and returning their positions in a given sequence.

Author:
uniVocity Software Pty Ltd - parsers@univocity.com

Method Summary
 String describe()
          Returns a string that represents the current field selection
 int[] getFieldIndexes(String[] headers)
          Returns the indexes of any selected fields that are part of a sequence of headers.
 

Method Detail

getFieldIndexes

int[] getFieldIndexes(String[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.

Parameters:
headers - the sequence of headers that might have some elements selected by this FieldSelector
Returns:
the positions of all selected elements in the given headers sequence.

describe

String describe()
Returns a string that represents the current field selection

Returns:
a string that represents the current field selection


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.