Package org.nfctools.examples.ndef

Source Code of org.nfctools.examples.ndef.NdefUltralight

package org.nfctools.examples.ndef;

import java.io.IOException;

import org.nfctools.examples.AbstractDemo;
import org.nfctools.mf.classic.MfClassicNfcTagListener;
import org.nfctools.mf.ul.Type2NfcTagListener;
import org.nfctools.utils.LoggingNdefListener;

public class NdefUltralight extends AbstractDemo {

  private void runDemo() throws IOException {
    LoggingNdefListener ndefListener = new LoggingNdefListener();
    launchDemo(new Type2NfcTagListener(ndefListener), new MfClassicNfcTagListener(ndefListener));
  }

  public static void main(String[] args) {

    try {
      NdefUltralight demo = new NdefUltralight();
      demo.runDemo();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of org.nfctools.examples.ndef.NdefUltralight

TOP
Copyright © 2018 www.massapi.com. 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.