1package com.android.server.wifi.anqp; 2 3import java.nio.ByteBuffer; 4 5/** 6 * An object holding the raw octets of an ANQP element as provided by the wpa_supplicant. 7 */ 8public class RawByteElement extends ANQPElement { 9 private final byte[] mPayload; 10 11 public RawByteElement(Constants.ANQPElementType infoID, ByteBuffer payload) { 12 super(infoID); 13 mPayload = new byte[payload.remaining()]; 14 payload.get(mPayload); 15 } 16 17 public byte[] getPayload() { 18 return mPayload; 19 } 20} 21