com.univocity.parsers.common.fields
Class AllIndexesSelector
java.lang.Object
com.univocity.parsers.common.fields.AllIndexesSelector
- All Implemented Interfaces:
- FieldSelector
public class AllIndexesSelector
- extends Object
- implements FieldSelector
A FieldSelector that selects all indexes of a record.
- Author:
- uniVocity Software Pty Ltd - parsers@univocity.com
- See Also:
FieldSelector
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllIndexesSelector
public AllIndexesSelector()
getFieldIndexes
public int[] getFieldIndexes(String[] headers)
- Description copied from interface:
FieldSelector
- 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.
describe
public String describe()
- Description copied from interface:
FieldSelector
- Returns a string that represents the current field selection
- Specified by:
describe in interface FieldSelector
- Returns:
- a string that represents the current field selection
Copyright © 2016 uniVocity Software Pty Ltd. All rights reserved.