Package org.nfctools.ndef.wkt.records

Examples of org.nfctools.ndef.wkt.records.Action


public class ActionRecordDecoder implements WellKnownRecordPayloadDecoder {

  @Override
  public WellKnownRecord decodePayload(byte[] payload, NdefMessageDecoder messageDecoder) {
    Action action = Action.getActionByValue(payload[0]);
    return new ActionRecord(action);
  }
View Full Code Here


    byte actionFlag = payload[0];

    GcActionRecord actionRecord = null;

    if ((actionFlag & GcActionRecord.NUMERIC_CODE) != 0) {
      Action action = Action.getActionByValue(payload[1]);
      actionRecord = new GcActionRecord(action);
    }
    else {

      Record record = messageDecoder.decodeToRecord(payload, 1, payload.length - 1);
View Full Code Here

TOP

Related Classes of org.nfctools.ndef.wkt.records.Action

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.