com.univocity.parsers.common
Class ContextSnapshot<T extends Context>
java.lang.Object
com.univocity.parsers.common.ContextWrapper<T>
com.univocity.parsers.common.ContextSnapshot<T>
- All Implemented Interfaces:
- Context
public abstract class ContextSnapshot<T extends Context>
- extends ContextWrapper<T>
A snapshot of a Context which retains copies of variable attributes of a given Context to
store the state of the parsing process at a given point in time. All runtime operations such as ContextWrapper.stop()
will still work and affect the current parsing process.
- Author:
- uniVocity Software Pty Ltd - parsers@univocity.com
|
Method Summary |
int |
currentColumn()
Returns the column index of the record being processed. |
long |
currentRecord()
Returns the index of the last valid record parsed from the input |
| Methods inherited from class com.univocity.parsers.common.ContextWrapper |
columnsReordered, errorContentLength, extractedFieldIndexes, headers, indexOf, indexOf, isStopped, recordMetaData, selectedHeaders, stop, toRecord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextSnapshot
public ContextSnapshot(T context)
- Creates a snapshot of a given
Context
- Parameters:
context - the context object whose variable attributes will be copied over.
currentColumn
public int currentColumn()
- Description copied from interface:
Context
- Returns the column index of the record being processed.
- Specified by:
currentColumn in interface Context- Overrides:
currentColumn in class ContextWrapper<T extends Context>
- Returns:
- the column index of the record being processed.
currentRecord
public long currentRecord()
- Description copied from interface:
Context
- Returns the index of the last valid record parsed from the input
- Specified by:
currentRecord in interface Context- Overrides:
currentRecord in class ContextWrapper<T extends Context>
- Returns:
- the index of the last valid record parsed from the input
Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.