Interface StatusListener

All Known Implementing Classes:
CollectingStatusListener

public interface StatusListener
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:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when the indexing finished successfully (without an exception).
    default void
    onError(Throwable throwable)
    Called when there was an error while indexing.
    default void
    onInit(long fileSize)
    Called on initialization.
    default void
    onReadBytes(int bytes)
    Called when a new read operation has been performend.
    default void
    Called when a new record has been read.
  • Method Details

    • onInit

      default void onInit(long fileSize)
      Called on initialization.
      Parameters:
      fileSize - the total file size.
    • onReadRecord

      default void onReadRecord()
      Called when a new record has been read.
    • onReadBytes

      default void onReadBytes(int bytes)
      Called when a new read operation has been performend.
      Parameters:
      bytes - number of bytes read.
    • onComplete

      default void onComplete()
      Called when the indexing finished successfully (without an exception).
    • onError

      default void onError(Throwable throwable)
      Called when there was an error while indexing.
      Parameters:
      throwable - the exception thrown.