Top Description Methods
de.siegmar.fastcsv.reader

public Interface StatusListener

Known Direct Implementers
de.siegmar.fastcsv.reader.CollectingStatusListener

Custom status listeners have to implement this interface.

FastCSV will call these methods synchronously – make sure not to perform time-consuming / blocking tasks!

See Also
IndexedCsvReader.IndexedCsvReaderBuilder#statusListener(StatusListener)

Method Summary

Modifier and TypeMethod and Description
public default void
onComplete()

Called when the indexing finished successfully (without an exception).

public default void
onError(final Throwable
the exception thrown.
throwable
)

Called when there was an error while indexing.

public default void
onInit(final long
the total file size.
fileSize
)

Called on initialization.

public default void
onReadBytes(final int
number of bytes read.
bytes
)

Called when a new read operation has been performend.

public default void
onReadRecord()

Called when a new record has been read.

Method Detail

onCompleteback to summary
public default void onComplete()

Called when the indexing finished successfully (without an exception).

onErrorback to summary
public default void onError(final Throwable throwable)

Called when there was an error while indexing.

Parameters
throwable:Throwable

the exception thrown.

onInitback to summary
public default void onInit(final long fileSize)

Called on initialization.

Parameters
fileSize:long

the total file size.

onReadBytesback to summary
public default void onReadBytes(final int bytes)

Called when a new read operation has been performend.

Parameters
bytes:int

number of bytes read.

onReadRecordback to summary
public default void onReadRecord()

Called when a new record has been read.