Package org.nfctools.ndef

Examples of org.nfctools.ndef.NdefMessageDecoder


    }
  }

  protected void convertRecords(TypeLengthValueReader reader) {
    lastReadRecords = new ArrayList<Record>();
    NdefMessageDecoder ndefMessageDecoder = NdefContext.getNdefMessageDecoder();
    while (reader.hasNext()) {
      Tlv tlv = reader.next();
      if (tlv instanceof NdefMessageTlv) {
        NdefMessage ndefMessage = ndefMessageDecoder.decode(((NdefMessageTlv)tlv).getNdefMessage());
        for (Record record : ndefMessageDecoder.decodeToRecords(ndefMessage)) {
          lastReadRecords.add(record);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.nfctools.ndef.NdefMessageDecoder

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.