blob: ecdf93990d9055e9d89940159c253ef1fd55f074 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package android.net.wifi.anqp;
import java.nio.ByteBuffer;
/**
* ANQP Element to hold a raw, unparsed, octet blob
*/
public class GenericBlobElement extends ANQPElement {
private final byte[] mData;
public GenericBlobElement(Constants.ANQPElementType infoID, ByteBuffer payload) {
super(infoID);
mData = new byte[payload.remaining()];
payload.get(mData);
}
public byte[] getData() {
return mData;
}
@Override
public String toString() {
return "Element ID " + getID() + ": " + Constants.toHexString(mData);
}
}
|