Package org.nfctools.ndef.wkt.decoder

Examples of org.nfctools.ndef.wkt.decoder.SmartPosterRecordDecoder


      + "A2B3439313233343536373839303F626F64793D486921253230576965253230676568742532306573253230646972253346";

  @Test
  public void testDecodeNdefRecord() throws Exception {

    SmartPosterRecordDecoder decoder = new SmartPosterRecordDecoder();

    byte[] payload = NfcUtils.convertASCIIToBin(innerSmartPoster);

    Record record = decoder.decodePayload(payload, NdefContext.getNdefMessageDecoder());
    assertTrue(record instanceof SmartPosterRecord);

    SmartPosterRecord smartPosterRecord = (SmartPosterRecord)record;

    assertEquals("Test", smartPosterRecord.getTitle().getText());
View Full Code Here

TOP

Related Classes of org.nfctools.ndef.wkt.decoder.SmartPosterRecordDecoder

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.