public class MSBuilder extends Object implements ADManufacturerSpecificBuilder
ADManufacturerSpecificBuilder
implementations.Constructor and Description |
---|
MSBuilder() |
MSBuilder(ADManufacturerSpecificBuilder... builders) |
Modifier and Type | Method and Description |
---|---|
void |
addBuilder(ADManufacturerSpecificBuilder builder) |
ADManufacturerSpecific |
build(int length,
int type,
byte[] data,
int companyId)
Build an AD structure of type Manufacturer Specific Data.
|
void |
removeBuilder(ADManufacturerSpecificBuilder builder) |
public MSBuilder()
public MSBuilder(ADManufacturerSpecificBuilder... builders)
public ADManufacturerSpecific build(int length, int type, byte[] data, int companyId)
ADManufacturerSpecificBuilder
build
in interface ADManufacturerSpecificBuilder
length
- The length of the AD structure. It is the value
of the first octet of the byte sequence of the
AD structure.type
- The AD type. The value is always 0xFF which represents
Manufacturer Specific Data.data
- The AD data. It is the third and following octets
of the byte sequence of the AD structure. Note that
the value of the first two bytes represents the
company ID.companyId
- The company ID. It is the value generated by
interpreting the third and fourth octets of the
byte sequence of the AD structure in little endian.ADManufacturerSpecific
or
its subclass. If the builder fails to build an
instance, null
should be returned.public void addBuilder(ADManufacturerSpecificBuilder builder)
public void removeBuilder(ADManufacturerSpecificBuilder builder)
Copyright © 2016. All rights reserved.