Package com.univocity.parsers.common
-
Interface Summary Interface Description Context ConversionProcessor A basic interface for classes that associateConversionimplementations with fields of a given input/output.IterableResult<T,C extends Context> AnIterableresult that provides the current parsing context through theIterableResult.getContext()methodParsingContext Parsing context information available to instances ofRowProcessor.ProcessorErrorHandler<T extends Context> TheProcessorErrorHandleris a callback used by the parser/writer to handle non-fatalDataProcessingExceptions that may occur when processing rows using aProcessororRowWriterProcessor.ResultIterator<T,C extends Context> AnIteratorthat provides the current parsing context through theResultIterator.getContext()methodRowProcessorErrorHandler TheRowProcessorErrorHandleris a callback used by the parser/writer to handle non-fatalDataProcessingExceptions that may occur when processing rows using aRowProcessororRowWriterProcessor. -
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 theContextinterface with essential information about the output being produced.DefaultConversionProcessor The base class forRowProcessorandRowWriterProcessorimplementations that support value conversions provided byConversioninstances.DefaultParsingContext The defaultParsingContextimplementation used internally byAbstractParserto expose information about a parsing process in execution.Format This is the parent class for all configuration classes that define a text format.NoopProcessorErrorHandler<T extends Context> An (singleton) implementation ofProcessorErrorHandlerthat simply rethrows anyDataProcessingExceptionthat comes into itsNoopProcessorErrorHandler.handleError(DataProcessingException, Object[], Context)} methodNormalizedString ANormalizedStringallows representing text in a normalized fashion.ParserOutput The ParserOutput is the component that manages records parsed byAbstractParserand their values.ParsingContextSnapshot A snapshot of aParsingContextwhich retains copies of variable attributes of a givenParsingContextto store the state of the parsing process at a given point in time.ParsingContextWrapper A simple a wrapper for aParsingContext.RetryableErrorHandler<T extends Context> AProcessorErrorHandlerimplementation 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 DataProcessingException ADataProcessingExceptionis an error thrown during the processing of a record successfully parsed.DataValidationException ADataValidationExceptionis an error thrown during the processing of a record successfully parsed, but whose data failed to pass a validation defined by annotationValidateTextParsingException 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.