CellProcessor
, StringCellProcessor
public class ParseChar extends CellProcessorAdaptor implements StringCellProcessor
next
Constructor | Description |
---|---|
ParseChar() |
Constructs a new ParseChar processor, which converts a String to a Character.
|
ParseChar(DoubleCellProcessor next) |
Constructs a new ParseChar processor, which converts a String to a Character, 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 ParseChar()
public ParseChar(DoubleCellProcessor 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 a Character or String, or is a String of multiple charactersCopyright © 2007–2018 Super CSV. All rights reserved.