Top Description Constructors Methods
com.univocity.parsers.common.fields

public Class FieldIndexSelector

extends FieldSet<Integer>
implements FieldSelector
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.fields.FieldSelector, java.lang.Cloneable
Imports
com.univocity.parsers.common.*, java.util.*

A FieldSelector capable of selecting fields by their position in a record.
Author
Univocity Software Pty Ltd - [email protected]
See Also
FieldSelector, FieldSet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int[]
getFieldIndexes(NormalizedString[]
the sequence of headers that might have some elements selected by this FieldSelector
columns
)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.
public int[]
getFieldIndexes(String[]
the sequence of headers that might have some elements selected by this FieldSelector
headers
)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.
Inherited from com.univocity.parsers.common.fields.FieldSet:
addaddclonedescribegetremoveremovesetsettoString

Constructor Detail

FieldIndexSelectorback to summary
public FieldIndexSelector()

Method Detail

getFieldIndexesback to summary
public int[] getFieldIndexes(NormalizedString[] columns)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Doc from com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.

Parameters
columns:NormalizedString[]

the sequence of headers that might have some elements selected by this FieldSelector

Returns:int[]

the positions of all selected elements in the given headers sequence.

Annotations
@Override
getFieldIndexesback to summary
public int[] getFieldIndexes(String[] headers)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Doc from com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.

Parameters
headers:String[]

the sequence of headers that might have some elements selected by this FieldSelector

Returns:int[]

the positions of all selected elements in the given headers sequence.

Annotations
@Override