Package org.supercsv.cellprocessor
Provides CellProcessor classes for conversion, formatting and parsing.
-
Class Summary Class Description CellProcessorAdaptor Abstract super class containing shared behaviour of all cell processors.Collector This processor collects each value it encounters and adds it to the supplied Collection.ConvertNullTo This processor returns a specified default value if the input is null.FmtBool Converts a Boolean into a formatted string.FmtDate Converts a date into a formatted string using theSimpleDateFormat
class.FmtNumber Converts a double into a formatted string using theDecimalFormat
class and the default locale.HashMapper Maps from one object to another, by looking up a Map with the input as the key, and returning its corresponding value.Optional This processor is used to indicate that a cell is optional, and will avoid executing further processors if it encounters null.ParseBigDecimal Convert a String to a BigDecimal.ParseBool Converts a String to a Boolean.ParseChar Converts a String to a Character.ParseDate Converts a String to a Date using theSimpleDateFormat
class.ParseDouble Converts a String to a Double.ParseEnum Converts a String to an Enum.ParseInt Converts a String to an Integer.ParseLong Converts a String to a Long.StrReplace Replaces each substring of the input string that matches the given regular expression with the given replacement.Token This processor is used in the situations you want to be able to check for the presence of a "special token".Trim Ensure that Strings or String-representations of objects are trimmed (contain no surrounding whitespace).Truncate Ensure that Strings or String-representations of objects are truncated to a maximum size.