Package com.univocity.parsers.common
-
Interface Summary Interface Description Context ConversionProcessor A basic interface for classes that associateConversion
implementations with fields of a given input/output.IterableResult<T,C extends Context> AnIterable
result that provides the current parsing context through theIterableResult.getContext()
methodParsingContext Parsing context information available to instances ofRowProcessor
.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
.ResultIterator<T,C extends Context> AnIterator
that provides the current parsing context through theResultIterator.getContext()
methodRowProcessorErrorHandler TheRowProcessorErrorHandler
is a callback used by the parser/writer to handle non-fatalDataProcessingException
s that may occur when processing rows using aRowProcessor
orRowWriterProcessor
. -
Class Summary Class Description AbstractParser<T extends CommonParserSettings<?>> The AbstractParser class provides a common ground for all parsers in univocity-parsers.AbstractWriter<S extends CommonWriterSettings<?>> The AbstractWriter class provides a common ground for all writers in univocity-parsers.ArgumentUtils An utility class for validating inputs.ColumnMap Class responsible for calculating and storing the position of fields parsed from the input.CommonParserSettings<F extends Format> This is the parent class for all configuration classes used by parsers (AbstractParser
)CommonSettings<F extends Format> This is the parent class for all configuration classes used by parsers (AbstractParser
) and writers (AbstractWriter
)CommonWriterSettings<F extends Format> This is the parent class for all configuration classes used by writers (AbstractWriter
)ContextSnapshot<T extends Context> ContextWrapper<T extends Context> A simple a wrapper for aContext
.DefaultContext Default implementation of theContext
interface with essential information about the output being produced.DefaultConversionProcessor The base class forRowProcessor
andRowWriterProcessor
implementations that support value conversions provided byConversion
instances.DefaultParsingContext The defaultParsingContext
implementation used internally byAbstractParser
to expose information about a parsing process in execution.DummyFormat A concrete (dummy) implementation ofFormat
.Format This is the parent class for all configuration classes that define a text format.Internal Internal class to keep common internal functions that are used in multiple places.LineReader A simple Reader implementation to enable parsers to process lines on demand, viaAbstractParser.parseLine(String)
NoopParsingContext AParsingContext
implementation that does nothing.NoopProcessorErrorHandler<T extends Context> An (singleton) implementation ofProcessorErrorHandler
that simply rethrows anyDataProcessingException
that comes into itsNoopProcessorErrorHandler.handleError(DataProcessingException, Object[], Context)
} methodNoopRowProcessorErrorHandler An (singleton) implementation ofRowProcessorErrorHandler
that simply rethrows anyDataProcessingException
that comes into itsNoopRowProcessorErrorHandler.handleError(DataProcessingException, Object[], ParsingContext)
methodNormalizedString ANormalizedString
allows representing text in a normalized fashion.ParserOutput The ParserOutput is the component that manages records parsed byAbstractParser
and their values.ParsingContextSnapshot 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.ParsingContextWrapper A simple a wrapper for aParsingContext
.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)
.StringCache<T> A simple cache of values associated with strings. -
Exception Summary Exception Description AbstractException Parent class of the Exception classes thrown by univocity-parsers.DataProcessingException ADataProcessingException
is an error thrown during the processing of a record successfully parsed.DataValidationException ADataValidationException
is an error thrown during the processing of a record successfully parsed, but whose data failed to pass a validation defined by annotationValidate
TextParsingException Exception type used provide information about any issue that might happen while parsing from a given input.TextWritingException Exception type used provide information about any issue that might happen while writing to a given output.