|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.knxnetip.util.DIB
tuwien.auto.calimero.knxnetip.util.ManufacturerDIB
public class ManufacturerDIB
Represents a manufacturer data description information block.
Since the data in this DIB is dependent on the manufacturer and might contain any information, no specific content parsing is done.
Objects of this type are immutable.
Field Summary |
---|
Fields inherited from class tuwien.auto.calimero.knxnetip.util.DIB |
---|
DEVICE_INFO, MFR_DATA, SUPP_SVC_FAMILIES |
Constructor Summary | |
---|---|
ManufacturerDIB(byte[] data,
int offset)
Creates a manufacturer data DIB out of a byte array. |
Method Summary | |
---|---|
byte[] |
getData()
Returns the manufacturer specific description data. |
int |
getID()
Returns the KNX manufacturer ID. |
byte[] |
toByteArray()
Returns the byte representation of the whole DIB structure. |
java.lang.String |
toString()
Returns a textual representation of this manufacturer DIB. |
Methods inherited from class tuwien.auto.calimero.knxnetip.util.DIB |
---|
getDescTypeCode, getStructLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManufacturerDIB(byte[] data, int offset) throws KNXFormatException
data
- byte array containing manufacturer data DIB structureoffset
- start offset of DIB in data
KNXFormatException
- if no DIB found or invalid structureMethod Detail |
---|
public final byte[] getData()
This data block starts at byte offset 4 in the DIB structure.
public final int getID()
The ID clearly identifies the manufacturer who created this DIB structure.
public byte[] toByteArray()
DIB
toByteArray
in class DIB
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |