Package com.univocity.parsers.common
Class DefaultParsingContext
java.lang.Object
com.univocity.parsers.common.DefaultContext
com.univocity.parsers.common.DefaultParsingContext
- All Implemented Interfaces:
Context,ParsingContext
The default
ParsingContext implementation used internally by AbstractParser to expose information about a parsing process in execution.- See Also:
-
Field Summary
FieldsFields inherited from class com.univocity.parsers.common.DefaultContext
columnMap, errorContentLength, output, recordFactory, stopped -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomments()Returns all comments collected by the parser so far.longReturns the index of the last char read from the input so far.longReturns the current line of text being processed by the parserReturns a String with the input character sequence parsed to produce the current record.intReturns the length of the character sequence parsed to produce the current record.Returns a String with the input character sequence accumulated on a field beforeTextParsingExceptionoccurred.Returns the last comment found in the input.char[]Returns the line separator characters used to separate individual records when parsing.String[]Returns the headers parsed from the input, if and only ifCommonParserSettings.headerExtractionEnabledistrue.voidskipLines(long lines) Skips a given number of lines from the current position.<Methods inherited from class com.univocity.parsers.common.DefaultContext
columnsReordered, currentColumn, currentRecord, errorContentLength, extractedFieldIndexes, headers, indexOf, indexOf, isStopped, recordMetaData, reset, selectedHeaders, stop, toRecord