Lines Matching defs:payload

40  * application payload. An NDEF Message is a container for
53 * <li><em>type</em>: detailed typing for the payload</li>
55 * <li><em>payload</em>: the actual payload</li>
60 * NDEF Records with correctly set tnf, type, id and payload fields, please
90 * Type, id and payload fields are empty in a {@literal TNF_EMPTY} record.
142 * Indicates the payload type is unknown.<p>
144 * "application/octet-stream" MIME type. The payload
152 * Indicates the payload is an intermediate or final chunk of a chunked
214 * The payload of a record with type RTD_ANDROID_APP
274 private static final int MAX_PAYLOAD_SIZE = 10 * (1 << 20); // 10 MB payload limit
443 * There are no such restrictions on the payload data.<p>
452 * @param data payload as bytes
484 * Basic validation of the tnf, type, id and payload is performed
489 * id or payload.</li>
499 * Deep inspection of the type, id and payload fields is not
503 * example, the payload may be invalid given the tnf and type.
505 * To omit a type, id or payload field, set the parameter to an
511 * @param payload byte array, containing zero to (2 ** 32 - 1) bytes,
515 public NdefRecord(short tnf, byte[] type, byte[] id, byte[] payload) {
519 if (payload == null) payload = EMPTY_BYTE_ARRAY;
521 String message = validateTnf(tnf, type, id, payload);
529 mPayload = payload;
575 * payload format.
595 * Returns the variable length payload.
598 * does not have a payload field.
634 * The MIME payload can be obtained using {@link #getPayload}.
659 * and containing a URI record in the NDEF message nested in the payload.
681 // check payload for a nested NDEF Message containing a URI
718 // payload[0] contains the URI Identifier Code, as per
749 byte[] payload = null;
796 payload = (payloadLength > 0 ? new byte[(int)payloadLength] : EMPTY_BYTE_ARRAY);
797 buffer.get(payload);
806 chunks.add(payload);
809 // last chunk, flatten the payload
815 payload = new byte[(int)payloadLength];
818 System.arraycopy(p, 0, payload, i, p.length);
831 String error = validateTnf(tnf, type, id, payload);
835 records.add(new NdefRecord(tnf, type, id, payload));
849 "payload above max limit: " + size + " > " + MAX_PAYLOAD_SIZE);
857 * is valid, and that the relevant type, id and payload
859 * perform any deep inspection of the type, id and payload fields.<p>
865 static String validateTnf(short tnf, byte[] type, byte[] id, byte[] payload) {
868 if (type.length != 0 || id.length != 0 || payload.length != 0) {
961 byte[] payload = new byte[payloadLength];
962 in.readByteArray(payload);
964 return new NdefRecord(tnf, type, id, payload);
985 * identical tnf, type, id and payload fields.
1004 if (mPayload.length > 0) b.append(" payload=").append(bytesToString(mPayload));