com.univocity.parsers.common.fields
Class ExcludeFieldEnumSelector
java.lang.Object
com.univocity.parsers.common.fields.FieldSet<Enum>
com.univocity.parsers.common.fields.ExcludeFieldEnumSelector
- All Implemented Interfaces:
- FieldSelector
public class ExcludeFieldEnumSelector
- extends FieldSet<Enum>
- implements FieldSelector
A FieldSelector capable of deselecting fields in a record.
This selector stores undesired fields, represented by values of an enumeration,
and will return the indexes of those fields that are not part of the selection.
- Author:
- uniVocity Software Pty Ltd - parsers@univocity.com
- See Also:
FieldSelector,
FieldSet
|
Method Summary |
String |
describe()
Returns a string that represents the current field selection |
int[] |
getFieldIndexes(String[] headers)
Returns the indexes of any that are part of a sequence of headers but not part of the selection. |
ExcludeFieldEnumSelector
public ExcludeFieldEnumSelector()
getFieldIndexes
public int[] getFieldIndexes(String[] headers)
- Returns the indexes of any that are part of a sequence of headers but not part of the selection.
- Specified by:
getFieldIndexes in interface FieldSelector
- Parameters:
headers - the sequence of headers that might have some elements selected by this FieldSelector
- Returns:
- the positions of all elements which were not selected.
describe
public String describe()
- Description copied from class:
FieldSet
- Returns a string that represents the current field selection
- Specified by:
describe in interface FieldSelector- Overrides:
describe in class FieldSet<Enum>
- Returns:
- a string that represents the current field selection
Copyright © 2016 uniVocity Software Pty Ltd. All rights reserved.