Note that physical card readers with slots for multiple cards are
represented by one CardTerminal object per such slot.
CardTerminals, TerminalFactory
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Card | |
| public abstract String | |
| public abstract boolean | Returns: whether a card is present in this terminal.Returns whether a card is present in this terminal. |
| public abstract boolean | Returns: false if the method returns due to an expired timeout, true otherwise.if positive, block for up to timeout)timeout
milliseconds; if zero, block indefinitely; must not be negativeWaits until a card is absent in this terminal or the timeout expires. |
| public abstract boolean | Returns: false if the method returns due to an expired timeout, true otherwise.if positive, block for up to timeout)timeout
milliseconds; if zero, block indefinitely; must not be negativeWaits until a card is present in this terminal or the timeout expires. |
| CardTerminal | back to summary |
|---|---|
| protected CardTerminal() Constructs a new CardTerminal object. This constructor is called by subclasses only. Application should call list() or getTerminal() to obtain a CardTerminal object. | |
| connect | back to summary |
|---|---|
| public abstract Card connect(String protocol) throws CardException Establishes a connection to the card. If a connection has previously established using the specified protocol, this method returns the same Card object as the previous call.
| |
| getName | back to summary |
|---|---|
| public abstract String getName() Returns the unique name of this terminal.
| |
| isCardPresent | back to summary |
|---|---|
| public abstract boolean isCardPresent() throws CardException Returns whether a card is present in this terminal.
| |
| waitForCardAbsent | back to summary |
|---|---|
| public abstract boolean waitForCardAbsent(long timeout) throws CardException Waits until a card is absent in this terminal or the timeout expires. If the method returns due to an expired timeout, it returns false. Otherwise it return true. If no card is present in this terminal when this method is called, it returns immediately.
| |
| waitForCardPresent | back to summary |
|---|---|
| public abstract boolean waitForCardPresent(long timeout) throws CardException Waits until a card is present in this terminal or the timeout expires. If the method returns due to an expired timeout, it returns false. Otherwise it return true. If a card is present in this terminal when this method is called, it returns immediately.
| |