public class AbCircleCardTerminalUSB extends CardTerminal
Modifier and Type | Method and Description |
---|---|
Card |
connect(java.lang.String protocol)
Establishes a connection to the card.
|
java.lang.String |
getFirmwareVersion() |
java.lang.String |
getName()
Returns the unique name of this terminal.
|
boolean |
isCardPresent()
Returns whether a card is present in this terminal.
|
java.lang.String |
toString() |
boolean |
waitForCardAbsent(long timeout)
Waits until a card is absent in this terminal or the timeout
expires.
|
boolean |
waitForCardPresent(long timeout)
Waits until a card is present in this terminal or the timeout
expires.
|
public java.lang.String getName()
CardTerminal
getName
in class CardTerminal
public Card connect(java.lang.String protocol) throws CardException
CardTerminal
connect
in class CardTerminal
protocol
- the protocol to use ("T=0", "T=1", or "T=CL"), or "*" to
connect using any available protocol.CardNotPresentException
- if no card is present in this terminalCardException
- if a connection could not be established
using the specified protocol or if a connection has previously been
established using a different protocolpublic boolean isCardPresent()
CardTerminal
isCardPresent
in class CardTerminal
public boolean waitForCardPresent(long timeout) throws CardException
CardTerminal
If a card is present in this terminal when this method is called, it returns immediately.
waitForCardPresent
in class CardTerminal
timeout
- if positive, block for up to timeout
milliseconds; if zero, block indefinitely; must not be negativeCardException
- if the operation failedpublic boolean waitForCardAbsent(long timeout) throws CardException
CardTerminal
If no card is present in this terminal when this method is called, it returns immediately.
waitForCardAbsent
in class CardTerminal
timeout
- if positive, block for up to timeout
milliseconds; if zero, block indefinitely; must not be negativeCardException
- if the operation failedpublic java.lang.String getFirmwareVersion() throws java.lang.IllegalAccessError
java.lang.IllegalAccessError
public java.lang.String toString()
toString
in class java.lang.Object