Examples of NdefMessageTlv


Examples of org.nfctools.mf.tlv.NdefMessageTlv

  }

  private byte[] wrapNdefMessageWithTlv(byte[] ndefMessage, int maxSize) {
    TagOutputStream out = new TagOutputStream(maxSize);
    TypeLengthValueWriter writer = new TypeLengthValueWriter(out);
    writer.write(new NdefMessageTlv(ndefMessage));
    writer.close();
    return out.getBuffer();
  }
View Full Code Here

Examples of org.nfctools.mf.tlv.NdefMessageTlv

    TagOutputStream out = new TagOutputStream(getMaxSize());
    TypeLengthValueWriter writer = new TypeLengthValueWriter(out);
    if (memoryLayout.hasDynamicLockBytes()) {
      writer.write(memoryLayout.createLockControlTlv());
    }
    writer.write(new NdefMessageTlv(convertRecordsToBytes(records)));
    writer.close();
    return out.getBuffer();
  }
View Full Code Here

Examples of org.nfctools.mf.tlv.NdefMessageTlv

  }

  private byte[] wrapNdefMessageWithTlv(byte[] ndefMessage, int maxSize) {
    TagOutputStream out = new TagOutputStream(maxSize);
    TypeLengthValueWriter writer = new TypeLengthValueWriter(out);
    writer.write(new NdefMessageTlv(ndefMessage));
    writer.close();

    return out.getBuffer();
  }
View Full Code Here
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.