Uses of Interface
org.supercsv.cellprocessor.ift.CellProcessor
-
Packages that use CellProcessor 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.ift Provides CellProcessor interfaces, used to control/restrict how processors can be chained together.org.supercsv.exception Provides the exceptions that may be thrown by Super CSV.org.supercsv.io Provides the various readers and writers used to read/write Strings, Maps, or Objects.org.supercsv.util Provides the utility classes used by Super CSV. -
-
Uses of CellProcessor in org.supercsv.cellprocessor
Classes in org.supercsv.cellprocessor that implement CellProcessor Modifier and Type Class Description class
CellProcessorAdaptor
Abstract super class containing shared behaviour of all cell processors.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
FmtBool
Converts a Boolean into a formatted string.class
FmtDate
Converts a date into a formatted string using theSimpleDateFormat
class.class
FmtNumber
Converts a double into a formatted string using theDecimalFormat
class and the default locale.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 theSimpleDateFormat
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.Fields in org.supercsv.cellprocessor declared as CellProcessor Modifier and Type Field Description protected CellProcessor
CellProcessorAdaptor. next
the next processor in the chainConstructors in org.supercsv.cellprocessor with parameters of type CellProcessor Constructor Description CellProcessorAdaptor(CellProcessor next)
Constructor used by CellProcessors that require CellProcessor chaining (further processing is required).Collector(java.util.Collection<java.lang.Object> collection, CellProcessor next)
Constructs a new Collector, which collects each value it encounters, adds it to the supplied Collection, then calls the next processor in the chain.ConvertNullTo(java.lang.Object returnValue, CellProcessor next)
Constructs a new ConvertNullTo processor, which returns a specified default value if the input is null.HashMapper(java.util.Map<java.lang.Object,java.lang.Object> mapping, java.lang.Object defaultValue, CellProcessor next)
Constructs a new HashMapper processor, which maps from one object to another, by looking up a Map with the input as the key, and returning its corresponding value.HashMapper(java.util.Map<java.lang.Object,java.lang.Object> mapping, CellProcessor next)
Constructs a new HashMapper processor, which maps from one object to another, by looking up a Map with the input as the key, and returning its corresponding value.Optional(CellProcessor next)
Constructs a new Optional processor, which when encountering null will return null , for all other values it will call the next processor in the chain.ParseBigDecimal(java.text.DecimalFormatSymbols symbols, CellProcessor next)
Constructs a new ParseBigDecimal processor, which converts a String to a BigDecimal using the supplied DecimalFormatSymbols object to convert any decimal separator to a "." before creating the BigDecimal, then calls the next processor in the chain.ParseBigDecimal(CellProcessor next)
Constructs a new ParseBigDecimal processor, which converts a String to a BigDecimal then calls the next processor in the chain.ParseEnum(java.lang.Class<T> enumClass, boolean ignoreCase, CellProcessor next)
Constructs a new ParseEnum processor, which converts a String to a Enum, ignoring the case of the input (or not) depending on the supplied flag, then calls the next processor in the chain.ParseEnum(java.lang.Class<T> enumClass, CellProcessor next)
Constructs a new ParseEnum processor, which converts a String to a Enum then calls the next processor in the chain.Token(java.lang.Object token, java.lang.Object returnValue, CellProcessor next)
Constructs a new Token processor, which returns the supplied value if the token is encountered, otherwise it passes the input unchanged to the next processor in the chain. -
Uses of CellProcessor in org.supercsv.cellprocessor.constraint
Classes in org.supercsv.cellprocessor.constraint that implement CellProcessor Modifier and Type Class 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.class
Unique
Ensure that upon processing a CSV file (reading or writing), that values of the column all are unique.class
UniqueHashCode
Ensure that upon processing a CSV file (reading or writing), that values of the column are all unique.Constructors in org.supercsv.cellprocessor.constraint with parameters of type CellProcessor Constructor Description Equals(java.lang.Object constantValue, CellProcessor next)
Constructs a new Equals processor, which ensures all input data is equal to the supplied constant value, then calls the the next processor in the chain.Equals(CellProcessor next)
Constructs a new Equals processor, which ensures all input data is equal, then calls the the next processor in the chain.ForbidSubStr(java.lang.String[] forbiddenSubStrings, CellProcessor next)
Constructs a new ForbidSubStr processor which ensures the input doesn't contain any of the supplied substrings, then calls the next processor in the chain.ForbidSubStr(java.lang.String forbiddenSubString, CellProcessor next)
Constructs a new ForbidSubStr processor which ensures the input doesn't contain the supplied substring, then calls the next processor in the chain.ForbidSubStr(java.util.List<java.lang.String> forbiddenSubStrings, CellProcessor next)
Constructs a new ForbidSubStr processor which ensures the input doesn't contain any of the supplied substrings, then calls the next processor in the chain.IsElementOf(java.util.Collection<java.lang.Object> collection, CellProcessor next)
Constructs a new IsElementOf, which ensures that the input value is an element of a Collection, then calls the next processor in the chain.IsIncludedIn(java.lang.Object[] possibleValues, CellProcessor next)
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of given values, then calls the next processor in the chain.IsIncludedIn(java.util.Set<java.lang.Object> possibleValues, CellProcessor next)
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of given values, then calls the next processor in the chain.NotNull(CellProcessor next)
Constructs a new NotNull which ensures that the input is not null, then calls the next processor in the chain.RequireHashCode(int[] requiredHashcodes, CellProcessor next)
Constructs a new RequireHashCode processor, which converts the input to a String, ensures that the input's hash function matches any of a given set of hashcodes, then calls the next processor in the chain.RequireHashCode(int requiredHashcode, CellProcessor next)
Constructs a new RequireHashCode processor, which converts the input to a String, ensures that the input's hash function matches the supplied hashcode, then calls the next processor in the chain.RequireSubStr(java.lang.String[] requiredSubStrings, CellProcessor next)
Converts the input to a String, ensures that the input contains at least one of the specified substrings, then calls the next processor in the chain.RequireSubStr(java.lang.String requiredSubString, CellProcessor next)
Converts the input to a String, ensures that the input contains the specified substring, then calls the next processor in the chain.RequireSubStr(java.util.List<java.lang.String> requiredSubStrings, CellProcessor next)
Converts the input to a String, ensures that the input contains at least one of the specified substrings, then calls the next processor in the chain.Strlen(int[] requiredLengths, CellProcessor next)
Constructs a new Strlen processor, which ensures that the input String has a length equal to any of the supplied lengths, then calls the next processor in the chain.Strlen(int requiredLength, CellProcessor next)
Constructs a new Strlen processor, which ensures that the input String has a length equal to the supplied length, then calls the next processor in the chain.StrMinMax(long min, long max, CellProcessor next)
Constructs a new StrMinMax processor, which ensures that the input data has a string length between the supplied min and max values (both inclusive), then calls the next processor in the chain.StrNotNullOrEmpty(CellProcessor next)
Constructs a new StrNotNullOrEmpty processor, which checks for null/empty Strings, then calls the next processor in the chain.Unique(CellProcessor next)
Constructs a new Unique processor, which ensures that all rows in a column are unique, then calls the next processor in the chain.UniqueHashCode(CellProcessor next)
Constructs a new UniqueHashCode processor, which ensures that all rows in a column are unique, then calls the next processor in the chain. -
Uses of CellProcessor in org.supercsv.cellprocessor.ift
Subinterfaces of CellProcessor in org.supercsv.cellprocessor.ift Modifier and Type Interface Description interface
BoolCellProcessor
Interface to indicate the a CellProcessor is capable of processing Boolean values.interface
DateCellProcessor
Interface to indicate the a CellProcessor is capable of processing Date values.interface
DoubleCellProcessor
Interface to indicate the a CellProcessor is capable of processing Double values.interface
LongCellProcessor
Interface to indicate the a CellProcessor is capable of processing Long values.interface
StringCellProcessor
Interface to indicate the a CellProcessor is capable of processing String values. -
Uses of CellProcessor in org.supercsv.exception
Methods in org.supercsv.exception that return CellProcessor Modifier and Type Method Description CellProcessor
SuperCsvCellProcessorException. getProcessor()
Gets the processor that was executing.Constructors in org.supercsv.exception with parameters of type CellProcessor Constructor Description SuperCsvCellProcessorException(java.lang.Class<?> expectedType, java.lang.Object actualValue, CsvContext context, CellProcessor processor)
Constructs a new SuperCsvCellProcessorException to indicate that the value received by a CellProcessor wasn't of the correct type.SuperCsvCellProcessorException(java.lang.String msg, CsvContext context, CellProcessor processor)
Constructs a new SuperCsvCellProcessorException.SuperCsvCellProcessorException(java.lang.String msg, CsvContext context, CellProcessor processor, java.lang.Throwable t)
Constructs a new SuperCsvCellProcessorException.SuperCsvConstraintViolationException(java.lang.String msg, CsvContext context, CellProcessor processor)
Constructs a new SuperCsvConstraintViolationException.SuperCsvConstraintViolationException(java.lang.String msg, CsvContext context, CellProcessor processor, java.lang.Throwable t)
Constructs a new SuperCsvConstraintViolationException. -
Uses of CellProcessor in org.supercsv.io
Methods in org.supercsv.io with parameters of type CellProcessor Modifier and Type Method Description protected java.util.List<java.lang.Object>
AbstractCsvReader. executeProcessors(java.util.List<java.lang.Object> processedColumns, CellProcessor[] processors)
Executes the supplied cell processors on the last row of CSV that was read and populates the supplied List of processed columns.java.util.List<java.lang.Object>
CsvListReader. executeProcessors(CellProcessor... processors)
Executes the supplied cell processors on the last row of CSV that was read.java.util.List<java.lang.Object>
ICsvListReader. executeProcessors(CellProcessor... processors)
Executes the supplied cell processors on the last row of CSV that was read.<T> T
CsvBeanReader. read(java.lang.Class<T> clazz, java.lang.String[] nameMapping, CellProcessor... processors)
Reads a row of a CSV file and populates an instance of the specified class, using the supplied name mapping to map column values to the appropriate fields.<T> T
CsvBeanReader. read(T bean, java.lang.String[] nameMapping, CellProcessor... processors)
Reads a row of a CSV file and populates the bean, using the supplied name mapping to map column values to the appropriate fields.java.util.List<java.lang.Object>
CsvListReader. read(CellProcessor... processors)
Reads a row of a CSV file and returns a List of Objects containing each column.java.util.Map<java.lang.String,java.lang.Object>
CsvMapReader. read(java.lang.String[] nameMapping, CellProcessor[] processors)
Reads a row of a CSV file into a Map, using the supplied name mapping to map column values to the appropriate map entries, and the supplied processors to process the values before adding them to the Map.<T> T
ICsvBeanReader. read(java.lang.Class<T> clazz, java.lang.String[] nameMapping, CellProcessor... processors)
Reads a row of a CSV file and populates an instance of the specified class, using the supplied name mapping to map column values to the appropriate fields.<T> T
ICsvBeanReader. read(T bean, java.lang.String[] nameMapping, CellProcessor... processors)
Reads a row of a CSV file and populates the bean, using the supplied name mapping to map column values to the appropriate fields.java.util.List<java.lang.Object>
ICsvListReader. read(CellProcessor... processors)
Reads a row of a CSV file and returns a List of Objects containing each column.java.util.Map<java.lang.String,java.lang.Object>
ICsvMapReader. read(java.lang.String[] nameMapping, CellProcessor[] processors)
Reads a row of a CSV file into a Map, using the supplied name mapping to map column values to the appropriate map entries, and the supplied processors to process the values before adding them to the Map.void
CsvBeanWriter. write(java.lang.Object source, java.lang.String[] nameMapping, CellProcessor[] processors)
Writes the fields of the object as columns of a CSV file, using the supplied name mapping to map fields to the appropriate columns.void
CsvListWriter. write(java.util.List<?> columns, CellProcessor[] processors)
Writes a List of Objects as columns of a CSV file, performing any necessary processing beforehand.void
CsvMapWriter. write(java.util.Map<java.lang.String,?> values, java.lang.String[] nameMapping, CellProcessor[] processors)
Writes the values of the Map as columns of a CSV file, using the supplied name mapping to map values to the appropriate columns.void
CsvResultSetWriter. write(java.sql.ResultSet resultSet, CellProcessor[] writeProcessors)
Writes a JDBCResultSet
as a CSV file.void
ICsvBeanWriter. write(java.lang.Object source, java.lang.String[] nameMapping, CellProcessor[] processors)
Writes the fields of the object as columns of a CSV file, using the supplied name mapping to map fields to the appropriate columns.void
ICsvListWriter. write(java.util.List<?> columns, CellProcessor[] processors)
Writes a List of Objects as columns of a CSV file, performing any necessary processing beforehand.void
ICsvMapWriter. write(java.util.Map<java.lang.String,?> values, java.lang.String[] nameMapping, CellProcessor[] processors)
Writes the values of the Map as columns of a CSV file, using the supplied name mapping to map values to the appropriate columns.void
ICsvResultSetWriter. write(java.sql.ResultSet resultSet, CellProcessor[] cellProcessors)
Writes a JDBCResultSet
as a CSV file. -
Uses of CellProcessor in org.supercsv.util
Methods in org.supercsv.util with parameters of type CellProcessor Modifier and Type Method Description static void
Util. executeCellProcessors(java.util.List<java.lang.Object> destination, java.util.List<?> source, CellProcessor[] processors, int lineNo, int rowNo)
Processes each element in the source List (using the corresponding processor chain in the processors array) and adds it to the destination List.
-