public class CropStringMapper extends Object implements Mapper
Modifier and Type | Field and Description |
---|---|
private int |
maxLength |
private Mapper |
parent |
Constructor and Description |
---|
CropStringMapper(Mapper parent,
int maxLength)
Create a new CropStringMapper.
|
Modifier and Type | Method and Description |
---|---|
Float |
getFloat(FlatFileParser.Data data)
Get the value for the line of data as a float.
|
Integer |
getInt(FlatFileParser.Data data)
Get the value for the line of data as an integer.
|
String |
getValue(FlatFileParser.Data data)
Use the parent mapper to get the string value.
|
private final Mapper parent
private final int maxLength
public CropStringMapper(Mapper parent, int maxLength)
parent
- The parent mapper that does the actual mappingmaxLength
- The maximum length of stingspublic String getValue(FlatFileParser.Data data)
public Integer getInt(FlatFileParser.Data data)
Mapper
public Float getFloat(FlatFileParser.Data data)
Mapper