Class SDOSegment
- java.lang.Object
-
- org.apache.plc4x.java.canopen.readwrite.SDOSegment
-
- All Implemented Interfaces:
Message,Serializable
public class SDOSegment extends Object implements Message
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexAddressaddressprotected byte[]dataprotected booleanexpeditedprotected booleanindicated
-
Constructor Summary
Constructors Constructor Description SDOSegment(boolean expedited, boolean indicated, IndexAddress address, byte[] data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IndexAddressgetAddress()byte[]getData()booleangetExpedited()booleangetIndicated()intgetLengthInBits()intgetLengthInBytes()inthashCode()voidserialize(WriteBuffer writeBuffer)static SDOSegmentstaticParse(ReadBuffer readBuffer)static SDOSegmentstaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Field Detail
-
expedited
protected final boolean expedited
-
indicated
protected final boolean indicated
-
address
protected final IndexAddress address
-
data
protected final byte[] data
-
-
Constructor Detail
-
SDOSegment
public SDOSegment(boolean expedited, boolean indicated, IndexAddress address, byte[] data)
-
-
Method Detail
-
getExpedited
public boolean getExpedited()
-
getIndicated
public boolean getIndicated()
-
getAddress
public IndexAddress getAddress()
-
getData
public byte[] getData()
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static SDOSegment staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static SDOSegment staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-