Top Description Fields Constructors Methods
com.univocity.parsers.common

public abstract Class ContextSnapshot<T extends Context>

extends ContextWrapper<T extends Context>
Class Inheritance

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 stop() will still work and affect the current parsing process.
Author
Univocity Software Pty Ltd - [email protected]

Field Summary

Modifier and TypeField and Description
private final int
private final long
Inherited from com.univocity.parsers.common.ContextWrapper:
context

Constructor Summary

AccessConstructor and Description
public
ContextSnapshot(T
the context object whose variable attributes will be copied over.
context
)

Creates a snapshot of a given Context

Method Summary

Modifier and TypeMethod and Description
public int
currentColumn()

Overrides com.univocity.parsers.common.ContextWrapper.currentColumn.

Implements com.univocity.parsers.common.Context.currentColumn.

Returns the column index of the record being processed.
public long
currentRecord()

Overrides com.univocity.parsers.common.ContextWrapper.currentRecord.

Implements com.univocity.parsers.common.Context.currentRecord.

Returns the index of the last valid record parsed from the input
Inherited from com.univocity.parsers.common.ContextWrapper:
columnsReorderederrorContentLengthextractedFieldIndexesheadersindexOfindexOfisStoppedrecordMetaDataselectedHeadersstoptoRecord

Field Detail

currentColumnback to summary
private final int currentColumn
currentRecordback to summary
private final long currentRecord

Constructor Detail

ContextSnapshotback to summary
public ContextSnapshot(T context)

Creates a snapshot of a given Context

Parameters
context:T

the context object whose variable attributes will be copied over.

Method Detail

currentColumnback to summary
public int currentColumn()

Overrides com.univocity.parsers.common.ContextWrapper.currentColumn.

Implements com.univocity.parsers.common.Context.currentColumn.

Doc from com.univocity.parsers.common.Context.currentColumn.

Returns the column index of the record being processed.

Returns:int

the column index of the record being processed.

Annotations
@Override
currentRecordback to summary
public long currentRecord()

Overrides com.univocity.parsers.common.ContextWrapper.currentRecord.

Implements com.univocity.parsers.common.Context.currentRecord.

Doc from com.univocity.parsers.common.Context.currentRecord.

Returns the index of the last valid record parsed from the input

Returns:long

the index of the last valid record parsed from the input

Annotations
@Override