Package org.nfctools.scio

Examples of org.nfctools.scio.TerminalHandler


  public static Terminal getAvailableTerminal() {
    return getAvailableTerminal(null);
  }

  public static Terminal getAvailableTerminal(String preferredTerminalName) {
    TerminalHandler terminalHandler = new TerminalHandler();
    terminalHandler.addTerminal(new AcsTerminal());
    terminalHandler.addTerminal(new SclTerminal());

    return terminalHandler.getAvailableTerminal(preferredTerminalName);
  }
View Full Code Here


  private Terminal terminal;
  private boolean initiatorMode = false;

  public LlcpService(NdefListener ndefListener, TerminalStatusListener statusListener) {
    this.ndefListener = ndefListener;
    TerminalHandler terminalHandler = new TerminalHandler();
    terminalHandler.addTerminal(new AcsTerminal());
    terminalHandler.addTerminal(new SclTerminal());
    terminal = terminalHandler.getAvailableTerminal();
    terminal.setStatusListener(statusListener);
    terminal.setNdefListener(ndefListener);
    log.info("Connected to " + terminal.getTerminalName());
  }
View Full Code Here

TOP

Related Classes of org.nfctools.scio.TerminalHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.