| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static long | |
| private Map | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static synchronized TerminalImpl | |
| pack-priv static synchronized void | |
| public synchronized List | list(CardTerminals.
Implements abstract javax. Returns an unmodifiable list of all terminals matching the specified state. |
| pack-priv static List | |
| public synchronized boolean | waitForChange(long timeout)
Implements abstract javax. Waits for card insertion or removal in any of the terminals of this object or until the timeout expires. |
| contextId | back to summary |
|---|---|
| private static long contextId | |
| stateMap | back to summary |
|---|---|
| private Map<String, PCSCTerminals. | |
| terminals | back to summary |
|---|---|
| private static final Map<String, Reference<TerminalImpl>> terminals | |
| PCSCTerminals | back to summary |
|---|---|
| pack-priv PCSCTerminals() | |
| implGetTerminal | back to summary |
|---|---|
| private static synchronized TerminalImpl implGetTerminal(String name) | |
| initContext | back to summary |
|---|---|
| pack-priv static synchronized void initContext() throws PCSCException | |
| list | back to summary |
|---|---|
| public synchronized List Implements abstract javax. Doc from javax. Returns an unmodifiable list of all terminals matching the specified state. If state is If state is
| |
| waitForCards | back to summary |
|---|---|
| pack-priv static List | |
| waitForChange | back to summary |
|---|---|
| public synchronized boolean waitForChange(long timeout) throws CardException Implements abstract javax. Doc from javax. Waits for card insertion or removal in any of the terminals of this object or until the timeout expires. This method examines each CardTerminal of this object.
If a card was inserted into or removed from a CardTerminal since the
previous call to If This method is often used in a loop in combination with
TerminalFactory factory = ...;
CardTerminals terminals = factory.terminals();
while (true) {
for (CardTerminal terminal : terminals.list(CARD_INSERTION)) {
// examine Card in terminal, return if it matches
}
terminals.waitForChange();
}
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv static boolean | |
| pack-priv void |
| current | back to summary |
|---|---|
| private int current | |
| previous | back to summary |
|---|---|
| private int previous | |
| ReaderState | back to summary |
|---|---|
| pack-priv ReaderState() | |
| get | back to summary |
|---|---|
| pack-priv int get() | |
| isInsertion | back to summary |
|---|---|
| pack-priv boolean isInsertion() | |
| isRemoval | back to summary |
|---|---|
| pack-priv boolean isRemoval() | |
| present | back to summary |
|---|---|
| pack-priv static boolean present(int state) | |
| update | back to summary |
|---|---|
| pack-priv void update(int newState) | |