Package org.calypsonet.terminal.reader
Interface CardReader
-
- All Known Subinterfaces:
ConfigurableCardReader
,ObservableCardReader
public interface CardReader
Card reader driving the underlying hardware to manage the card detection.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the reader.boolean
isCardPresent()
Checks if the card is present.boolean
isContactless()
Checks if the card communication mode is contactless.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the reader.- Returns:
- A non-empty string containing the name of the reader.
- Since:
- 1.0.0
-
isContactless
boolean isContactless()
Checks if the card communication mode is contactless.- Returns:
- true if the communication mode is contactless else false.
- Since:
- 1.0.0
-
isCardPresent
boolean isCardPresent()
Checks if the card is present.- Returns:
- true if a card is inserted in the reader else false.
- Throws:
ReaderCommunicationException
- If the communication with the reader has failed.- Since:
- 1.0.0
-
-