openpss / com.hendraanggrian.openpss.ui.wage.readers / Reader

Reader

abstract class Reader

A file readers that generates actions of Attendee given input file.

Constructors

<init>

Reader()

A file readers that generates actions of Attendee given input file.

Properties

extensions

abstract val extensions: Array<String>

Expected file extensions for FileChooser.ExtensionFilter.

name

abstract val name: String

Identifier of a reader.

Functions

read

abstract suspend fun read(file: File): Collection<Attendee>

The reading process is executed in background thread. During its long operation, exception throwing may happen in read.

toString

open fun toString(): String

Companion Object Functions

listAll

fun listAll(): ObservableList<Reader>

of

fun of(name: String): Reader

Inheritors

EClockingReader

object EClockingReader : Reader

Compatible with e Clocking fingerprint reader. Tested version: 2.1.015.

TestReader

object TestReader : Reader