|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.link.medium.RawFrameFactory
public final class RawFrameFactory
Factory for raw frames on medium.
Supports creation of raw frames out of byte arrays for now.
Method Summary | |
---|---|
static RawFrame |
create(int mediumType,
byte[] data,
int offset)
Creates a raw frame out of a byte array for the specified communication medium. |
static RawFrame |
createPL110(byte[] data,
int offset)
Creates a raw frame out of a byte array for the PL110 communication medium. |
static RawFrame |
createPL132(byte[] data,
int offset)
Creates a raw frame out of a byte array for the PL132 communication medium. |
static RawFrame |
createTP1(byte[] data,
int offset)
Creates a raw frame out of a byte array for the TP1 communication medium. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RawFrame create(int mediumType, byte[] data, int offset) throws KNXFormatException
This method just invokes one of the other medium type specific creation methods according the given medium type.
mediumType
- KNX communication medium, one of the media types declared in
KNXMediumSettings
data
- byte array containing the raw frame structureoffset
- start offset of frame structure in data
, 0 <=
offset < data.length
KNXFormatException
- on unknown/not supported KNX medium or no valid frame
structurepublic static RawFrame createPL110(byte[] data, int offset) throws KNXFormatException
data
- byte array containing the PL110 raw frame structureoffset
- start offset of frame structure in data
, 0 <=
offset < data.length
KNXFormatException
- on no valid frame structurepublic static RawFrame createPL132(byte[] data, int offset) throws KNXFormatException
data
- byte array containing the PL132 raw frame structureoffset
- start offset of frame structure in data
, 0 <=
offset < data.length
KNXFormatException
- on no valid frame structurepublic static RawFrame createTP1(byte[] data, int offset) throws KNXFormatException
data
- byte array containing the TP1 raw frame structureoffset
- start offset of frame structure in data
, 0 <=
offset < data.length
KNXFormatException
- on no valid frame structure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |