Package | Description |
---|---|
org.supercsv.cellprocessor |
Provides CellProcessor classes for conversion, formatting and parsing.
|
org.supercsv.cellprocessor.constraint |
Provides CellProcessor classes for enforcing constraints.
|
org.supercsv.cellprocessor.joda |
Provides CellProcessor classes for formatting and parsing Joda-Time classes.
|
org.supercsv.cellprocessor.time |
Provides CellProcessor classes for converting, formatting and parsing
java.time classes. |
Modifier and Type | Class and Description |
---|---|
class |
Collector
This processor collects each value it encounters and adds it to the supplied Collection.
|
class |
ConvertNullTo
This processor returns a specified default value if the input is null.
|
class |
HashMapper
Maps from one object to another, by looking up a Map with the input as the key, and returning its
corresponding value.
|
class |
Optional
This processor is used to indicate that a cell is optional, and will avoid executing further processors if it
encounters null.
|
class |
ParseBigDecimal
Convert a String to a BigDecimal.
|
class |
ParseBool
Converts a String to a Boolean.
|
class |
ParseChar
Converts a String to a Character.
|
class |
ParseDate
Converts a String to a Date using the
SimpleDateFormat class. |
class |
ParseDouble
Converts a String to a Double.
|
class |
ParseEnum
Converts a String to an Enum.
|
class |
ParseInt
Converts a String to an Integer.
|
class |
ParseLong
Converts a String to a Long.
|
class |
StrReplace
Replaces each substring of the input string that matches the given regular expression with the given replacement.
|
class |
Token
This processor is used in the situations you want to be able to check for the presence of a "special
token".
|
class |
Trim
Ensure that Strings or String-representations of objects are trimmed (contain no surrounding whitespace).
|
class |
Truncate
Ensure that Strings or String-representations of objects are truncated to a maximum size.
|
Constructor and Description |
---|
FmtBool(String trueValue,
String falseValue,
StringCellProcessor next)
Constructs a new FmtBool processor, which converts a Boolean into a formatted string, then calls the
next processor in the chain.
|
FmtDate(String dateFormat,
StringCellProcessor next)
Constructs a new FmtDate processor, which converts a date into a formatted string using
SimpleDateFormat, then calls the next processor in the chain.
|
FmtNumber(DecimalFormat formatter,
StringCellProcessor next)
Constructs a new FmtNumber processor, which converts a double into a formatted string using the supplied
decimal format, then calls the next processor in the chain.
|
FmtNumber(String decimalFormat,
StringCellProcessor next)
Constructs a new FmtNumber processor, which converts a double into a formatted string using the supplied
decimal format String, then calls the next processor in the chain.
|
StrReplace(String regex,
String replacement,
StringCellProcessor next)
Constructs a new StrReplace processor, which replaces each substring of the input that matches the regex
with the supplied replacement, then calls the next processor in the chain.
|
Trim(StringCellProcessor next)
Constructs a new Trim processor, which trims a String to ensure it has no surrounding whitespace then
calls the next processor in the chain.
|
Truncate(int maxSize,
StringCellProcessor next)
Constructs a new Truncate processor, which truncates a String to ensure it is no longer than the
specified size, then calls the next processor in the chain.
|
Truncate(int maxSize,
String suffix,
StringCellProcessor next)
Constructs a new Truncate processor, which truncates a String to ensure it is no longer than the
specified size, then appends the
suffix String to indicate that the String has been truncated and
calls the next processor in the chain. |
Modifier and Type | Class and Description |
---|---|
class |
DMinMax
Converts the input data to a Double and ensures that number is within a specified numeric range (inclusive).
|
class |
Equals
This constraint ensures that all input data is equal (to each other, or to a supplied constant value).
|
class |
ForbidSubStr
Converts the input to a String and ensures that it doesn't contain any of the supplied substrings.
|
class |
IsElementOf
This processor ensures that the input value is an element of a Collection.
|
class |
IsIncludedIn
This processor ensures that the input value belongs to a specific set of (unchangeable) values.
|
class |
LMinMax
Converts the input data to a Long and and ensures the value is between the supplied min and max values (inclusive).
|
class |
NotNull
This processor ensures that the input is not null.
|
class |
RequireHashCode
This processor converts the input to a String, and ensures that the input's hash function matches any of a given set
of hashcodes.
|
class |
RequireSubStr
Converts the input to a String and ensures that the input contains at least one of the specified substrings.
|
class |
Strlen
This processor ensures that the input String has a length equal to any of the supplied lengths.
|
class |
StrMinMax
This constraint ensures that the input data has a string length between the supplied min and max values (both
inclusive).
|
class |
StrNotNullOrEmpty
This processor checks if the input is null or an empty string, and raises an exception in that case.
|
class |
StrRegEx
This constraint ensures that the input data matches the given regular expression.
|
Constructor and Description |
---|
StrRegEx(String regex,
StringCellProcessor next)
Constructs a new StrRegEx processor, which ensures that the input data matches the given regular
expression, then calls the next processor in the chain.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractJodaParsingProcessor<T>
Abstract base class for cell processors converting Strings to Joda types.
|
class |
ParseDateTime
Converts a String to a Joda DateTime.
|
class |
ParseLocalDate
Converts a String to a Joda LocalDate.
|
class |
ParseLocalDateTime
Converts a String to a Joda LocalDateTime.
|
class |
ParseLocalTime
Converts a String to a Joda LocalTime.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTemporalAccessorParsingProcessor<T extends TemporalAccessor>
Abstract base class for cell processors converting Strings to
TemporalAccessor types. |
class |
ParseZonedDateTime
Converts a String to a ZonedDateTime.
|
Copyright © 2007–2015 Super CSV. All rights reserved.