Top Interfaces Classes Enums
[default module]

Package com.univocity.parsers.conversions


Interface Summary

Modifier and TypeInterface and Description
public interface
Conversion<
The input type to be converted to the output type O
I
,
The type of outputs produced by a conversion applied to the an input I. When used in conjunction with the com.univocity.parsers.annotations.Convert annotation, O should be compatible with the type of the annotated field.
O
>

The interface that defines the conversion from one type of value to another, and vice versa.

public interface
FormattedConversion<
The type of the formatter object (typically java.text.DecimalFormat for numeric values, and java.text.SimpleDateFormat for dates)
T
>

This interface identifies conversions associated with the Format annotation.

public interface
Validator<
the expected type of the value to be validated
T
>

Defines a custom validation process to be executed when reading or writing values into a field of a java bean that is annotated with com.univocity.parsers.annotations.Validate

Class Summary

Modifier and TypeClass and Description
public class
BigDecimalConversion

Converts Strings to BigDecimals and vice versa

public class
BigIntegerConversion

Converts Strings to BigIntegers and vice versa

public class
BooleanConversion

Converts Strings to Booleans and vice versa

This class supports multiple representations of boolean values.

public class
ByteConversion

Converts Strings to Bytes and vice versa

public class
CalendarConversion

Converts Strings to instances of java.util.Calendar and vice versa.

public class
CharacterConversion

Converts Strings to Characters and vice versa

public class
Conversions

This class provides default instances of common implementations if com.univocity.parsers.conversions.Conversion, as well as useful methods for obtaining new instances of these.

public class
DateConversion

Converts Strings to instances of java.util.Date and vice versa.

public class
DoubleConversion

Converts Strings to Doubles and vice versa

public class
EnumConversion<
the enumeration type whose constants will be converted from/to String
T extends Enum<T>
>

Converts Strings to enumeration constants and vice versa.

public class
FloatConversion

Converts Strings to Floats and vice versa

public class
FormattedBigDecimalConversion

Converts formatted Strings to instances of java.math.BigDecimal and vice versa.

public class
FormattedDateConversion

Converts objects of different date types (java.util.Date and java.util.Calendar) to a formatted date String.

public class
IntegerConversion

Converts Strings to Integers and vice versa

public class
LongConversion

Converts Strings to Longs and vice versa

public class
LowerCaseConversion

Converts an input String to its lower case representation The LowerCaseConversion#revert(String) implements the same behavior of LowerCaseConversion#execute(String).

public abstract class
NullConversion<
The object type resulting from conversions of values of type O.
I
,
The object type resulting from conversions of values of type I.
O
>

Default implementation for conversions from input Objects of type I to output Objects of type O

Extending classes must implement a proper String to T conversion in ObjectConversion#fromString(String)

This abstract class provides default results for conversions when the input is null.

public class
NullStringConversion

Converts Strings to null and vice versa

This class supports multiple representations of null values.

public abstract class
NumericConversion<
The type of numbers supported by this conversion class.
T extends Number
>

Converts Strings to instances of java.lang.Number and vice versa.

public abstract class
ObjectConversion<
The object type resulting from conversions of String values.
T
>

Default implementation for conversions from an input String to Objects of a given type T

Extending classes must implement a proper String to T conversion in ObjectConversion#fromString(String)

This abstract class provides default results for conversions when the input is null.

public class
RegexConversion

Replaces contents of a given input String, identified by a regular expression, with a replacement String.

public class
ShortConversion

Converts Strings to Shorts and vice versa

public class
ToStringConversion

Converts any non-null object to its String representation.

public class
TrimConversion

Removes leading and trailing white spaces from an input String The TrimConversion#revert(String) implements the same behavior of TrimConversion#execute(String).

public class
UpperCaseConversion

Converts an input String to its upper case representation The UpperCaseConversion#revert(String) implements the same behavior of UpperCaseConversion#execute(String).

public class
ValidatedConversion

Performs one or more validations against the values of a given record.

Enum Summary

Modifier and TypeEnum and Description
public enum
EnumSelector

Identifies a property of an enumeration that should be used by EnumOptions to identify an input value.