CellProcessor
, StringCellProcessor
public class ParseInt extends CellProcessorAdaptor implements StringCellProcessor
next
Constructor | Description |
---|---|
ParseInt() |
Constructs a new ParseInt processor, which converts a String to an Integer.
|
ParseInt(LongCellProcessor next) |
Constructs a new ParseInt processor, which converts a String to an Integer, then calls the next
processor in the chain.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
execute(Object value,
CsvContext context) |
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNull
public ParseInt()
public ParseInt(LongCellProcessor next)
next
- the next processor in the chainNullPointerException
- if next is nullpublic Object execute(Object value, CsvContext context)
execute
in interface CellProcessor
value
- the value to be processedcontext
- the CSV contextSuperCsvCellProcessorException
- if value is null, isn't an Integer or String, or can't be parsed as an IntegerCopyright © 2007–2018 Super CSV. All rights reserved.