Uses of Interface
com.univocity.parsers.common.Context
Packages that use Context
Package
Description
-
Uses of Context in com.univocity.parsers.common
Classes in com.univocity.parsers.common with type parameters of type ContextModifier and TypeClassDescriptionclass
ContextSnapshot<T extends Context>
class
ContextWrapper<T extends Context>
A simple a wrapper for aContext
.interface
IterableResult<T,
C extends Context> AnIterable
result that provides the current parsing context through theIterableResult.getContext()
methodfinal class
NoopProcessorErrorHandler<T extends Context>
An (singleton) implementation ofProcessorErrorHandler
that simply rethrows anyDataProcessingException
that comes into itsNoopProcessorErrorHandler.handleError(DataProcessingException, Object[], Context)
} methodinterface
ProcessorErrorHandler<T extends Context>
TheProcessorErrorHandler
is a callback used by the parser/writer to handle non-fatalDataProcessingException
s that may occur when processing rows using aProcessor
orRowWriterProcessor
.interface
ResultIterator<T,
C extends Context> AnIterator
that provides the current parsing context through theResultIterator.getContext()
methodclass
RetryableErrorHandler<T extends Context>
AProcessorErrorHandler
implementation that gives the user a chance to provide a default value for columns that could not be processed due to an exception, through the methodRetryableErrorHandler.setDefaultValue(Object)
.Subinterfaces of Context in com.univocity.parsers.commonModifier and TypeInterfaceDescriptioninterface
Parsing context information available to instances ofRowProcessor
.Classes in com.univocity.parsers.common that implement ContextModifier and TypeClassDescriptionclass
ContextSnapshot<T extends Context>
class
ContextWrapper<T extends Context>
A simple a wrapper for aContext
.class
Default implementation of theContext
interface with essential information about the output being produced.class
The defaultParsingContext
implementation used internally byAbstractParser
to expose information about a parsing process in execution.(package private) class
AParsingContext
implementation that does nothing.class
A snapshot of aParsingContext
which retains copies of variable attributes of a givenParsingContext
to store the state of the parsing process at a given point in time.class
A simple a wrapper for aParsingContext
.Fields in com.univocity.parsers.common declared as ContextModifier and TypeFieldDescriptionprivate final Context
ColumnMap.context
protected final T
ContextWrapper.context
(package private) Context
DefaultConversionProcessor.context
Fields in com.univocity.parsers.common with type parameters of type ContextModifier and TypeFieldDescriptionprivate ProcessorErrorHandler<? extends Context>
CommonSettings.errorHandler
CommonParserSettings.processor
Methods in com.univocity.parsers.common with type parameters of type ContextModifier and TypeMethodDescriptionCommonParserSettings.getProcessor()
Returns the callback implementation of the interfaceProcessor
which handles the lifecycle of the parsing process and processes each record extracted from the input<T extends Context>
ProcessorErrorHandler<T>CommonSettings.getProcessorErrorHandler()
Returns the custom error handler to be used to capture and handle errors that might happen while processing records with aProcessor
or aRowWriterProcessor
(i.e.static final <C extends Context>
voidInternal.process
(String[] row, Processor<C> processor, C context, ProcessorErrorHandler<C> errorHandler) Methods in com.univocity.parsers.common with parameters of type ContextModifier and TypeMethodDescriptionfinal Object[]
DefaultConversionProcessor.applyConversions
(String[] row, Context context) Executes the sequences of conversions defined usingDefaultConversionProcessor.convertFields(Conversion...)
,DefaultConversionProcessor.convertIndexes(Conversion...)
andDefaultConversionProcessor.convertAll(Conversion...)
, for every field in the given row.protected void
DefaultConversionProcessor.initializeConversions
(String[] row, Context context) protected void
TextParsingException.setContext
(Context context) Method parameters in com.univocity.parsers.common with type arguments of type ContextModifier and TypeMethodDescriptionvoid
CommonParserSettings.setProcessor
(Processor<? extends Context> processor) Defines the callback implementation of the interfaceProcessor
which handles the lifecycle of the parsing process and processes each record extracted from the inputvoid
CommonSettings.setProcessorErrorHandler
(ProcessorErrorHandler<? extends Context> processorErrorHandler) Defines a custom error handler to capture and handle errors that might happen while processing records with aProcessor
or aRowWriterProcessor
(i.e.Constructors in com.univocity.parsers.common with parameters of type ContextModifierConstructorDescriptionColumnMap
(Context context, ParserOutput output) TextParsingException
(Context context, String message, Throwable cause) Creates a new exception with information about an error that occurred when parsing some input. -
Uses of Context in com.univocity.parsers.common.processor.core
Classes in com.univocity.parsers.common.processor.core with type parameters of type ContextModifier and TypeClassDescriptionclass
AbstractBatchedColumnProcessor<T extends Context>
AProcessor
implementation that stores values of columns in batches.class
AbstractBatchedObjectColumnProcessor<T extends Context>
AProcessor
implementation for converting batches of rows extracted from any implementation ofAbstractParser
into columns of objects.class
AbstractBeanListProcessor<T,
C extends Context> A convenienceProcessor
implementation for storing all java objects generated form the parsed input into a list.class
AbstractBeanProcessor<T,
C extends Context> AProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
into java objects.class
AbstractColumnProcessor<T extends Context>
A simpleProcessor
implementation that stores values of columns.class
AbstractConcurrentProcessor<T extends Context>
AProcessor
implementation to perform row processing tasks in parallel.class
AbstractInputValueSwitch<T extends Context>
private static class
AbstractInputValueSwitch.Switch<T extends Context>
class
AbstractListProcessor<T extends Context>
A convenienceProcessor
implementation for storing all rows parsed into a list.class
AbstractMasterDetailListProcessor<T extends Context>
A convenienceProcessor
implementation for storing allMasterDetailRecord
generated form the parsed input into a list.class
AbstractMasterDetailProcessor<T extends Context>
AProcessor
implementation for associating rows extracted from any implementation ofAbstractParser
intoMasterDetailRecord
instances.class
AbstractMultiBeanListProcessor<C extends Context>
AProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
into java objects, storing them into lists.class
AbstractMultiBeanProcessor<C extends Context>
AProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
into java objects.class
AbstractMultiBeanRowProcessor<C extends Context>
AProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
into java objects.class
AbstractObjectColumnProcessor<T extends Context>
AProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
into columns of objects.class
AbstractObjectListProcessor<T extends Context>
A convenienceProcessor
implementation for storing all rows parsed and converted to Object arrays into a list.class
AbstractObjectProcessor<T extends Context>
AProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
into arrays of objects.class
AbstractProcessor<T extends Context>
AProcessor
implementation that just implements all methods defined by the interface.class
AbstractProcessorSwitch<T extends Context>
A specialProcessor
implementation that combines and allows switching among different Processors.class
CompositeProcessor<C extends Context>
interface
The essential callback interface to handle records parsed by any parser that extendsAbstractParser
.Fields in com.univocity.parsers.common.processor.core declared as ContextModifier and TypeFieldDescriptionprivate T
AbstractProcessorSwitch.contextForProcessor
private T
AbstractConcurrentProcessor.currentContext
Methods in com.univocity.parsers.common.processor.core with parameters of type ContextModifier and TypeMethodDescription(package private) void
ColumnSplitter.addValuesToColumns
(T[] row, Context context) Splits the row and add stores the value of each column in its corresponding list inColumnSplitter.columnValues
BeanConversionProcessor.createBean
(String[] row, Context context) Converts a record with values extracted from the parser into a java bean instance.private void
ColumnSplitter.initialize
(Context context) Initializes the list of column values, the headers of each column and which columns to read if fields have been selected usingCommonSettings.selectFields(String...)
orCommonSettings.selectIndexes(Integer...)
private void
BeanConversionProcessor.mapFieldIndexes
(Context context, Object[] row, NormalizedString[] headers, int[] indexes, boolean columnsReordered) Identifies which fields are associated with which columns in a row.(package private) void
BeanConversionProcessor.mapValuesToFields
(T instance, Object[] row, Context context) Goes through a list of objects and associates each value to a particular field of a java bean instance(package private) void
BeanConversionProcessor.processNestedAttributes
(String[] row, Object instance, Context context) -
Uses of Context in com.univocity.parsers.common.record
Classes in com.univocity.parsers.common.record with type parameters of type ContextModifier and TypeClassDescription(package private) class
RecordImpl<C extends Context>
(package private) class
RecordMetaDataImpl<C extends Context>
Fields in com.univocity.parsers.common.record declared as ContextMethods in com.univocity.parsers.common.record with parameters of type ContextModifier and TypeMethodDescriptionabstract M
AbstractRecordFactory.createMetaData
(Context context) RecordFactory.createMetaData
(Context context) Constructors in com.univocity.parsers.common.record with parameters of type ContextModifierConstructorDescriptionAbstractRecordFactory
(Context context) Creates a new factory ofRecord
based the state of a parserRecordFactory
(Context context) Creates a new factory ofRecord
based the state of a parser -
Uses of Context in com.univocity.parsers.fixed
Fields in com.univocity.parsers.fixed declared as Context