com.univocity.parsers.common.fields
Class FieldNameSelector
java.lang.Object
com.univocity.parsers.common.fields.FieldSet<String>
com.univocity.parsers.common.fields.FieldNameSelector
- All Implemented Interfaces:
- FieldSelector
public class FieldNameSelector
- extends FieldSet<String>
- implements FieldSelector
A FieldSelector capable of selecting fields by their name.
- Author:
- uniVocity Software Pty Ltd - [email protected]
- See Also:
FieldSelector
,
FieldSet
Method Summary |
int[] |
getFieldIndexes(String[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldNameSelector
public FieldNameSelector()
getFieldIndexes
public int[] getFieldIndexes(String[] headers)
- Returns the indexes of any selected fields that are part of a sequence of headers.
- 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 selected elements in the given headers sequence.
Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.