Package org.nfctools.mf.tlv

Examples of org.nfctools.mf.tlv.TypeLengthValueWriter


    }
  }

  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


    }
  }

  private byte[] convertNdefMessage(Record... records) {
    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

    return trailerBlock;
  }

  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

Related Classes of org.nfctools.mf.tlv.TypeLengthValueWriter

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.