|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.knxnetip.util.CRI
tuwien.auto.calimero.knxnetip.util.TunnelCRI
public class TunnelCRI
Connection request information used for KNX tunneling connection.
Constructor Summary | |
---|---|
TunnelCRI(byte[] data,
int offset)
Creates a new CRI for tunnel connection type out of a byte array. |
|
TunnelCRI(short KNXLayer)
Creates a new CRI for tunnel connection type on the given KNX layer. |
Method Summary | |
---|---|
short |
getConnectionType()
Returns the used connection type code. |
short |
getKNXLayer()
Returns the KNX tunneling layer. |
byte[] |
getOptionalData()
Returns a copy of the optional data field. |
short |
getStructLength()
Returns the structure length of this CR in bytes. |
byte[] |
toByteArray()
Returns the byte representation of the whole CR structure. |
java.lang.String |
toString()
Returns a textual representation of this tunnel CRI. |
Methods inherited from class tuwien.auto.calimero.knxnetip.util.CRI |
---|
createRequest, createRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TunnelCRI(byte[] data, int offset) throws KNXFormatException
The CRI structure has a length of 4 bytes.
data
- byte array containing a CRI structure,
data.length - offset = 4
offset
- start offset of CRI in data
KNXFormatException
- if no CRI found or invalid structurepublic TunnelCRI(short KNXLayer)
KNXLayer
- KNX layer specifying the kind of tunnel (e.g. link layer tunnel)Method Detail |
---|
public final short getKNXLayer()
public java.lang.String toString()
public final short getConnectionType()
public final byte[] getOptionalData()
Optional data starts at offset 2 in the CR structure.
public final short getStructLength()
public byte[] toByteArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |