Class S7VarPayloadDataItem
java.lang.Object
org.apache.plc4x.java.s7.readwrite.S7VarPayloadDataItem
- All Implemented Interfaces:
Message,Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final DataTransportErrorCodeprotected final DataTransportSize -
Constructor Summary
ConstructorsConstructorDescriptionS7VarPayloadDataItem(DataTransportErrorCode returnCode, DataTransportSize transportSize, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getData()intintinthashCode()voidserialize(WriteBuffer writeBuffer) static S7VarPayloadDataItemstaticParse(ReadBuffer readBuffer) static S7VarPayloadDataItemstaticParse(ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
returnCode
-
transportSize
-
data
protected final byte[] data
-
-
Constructor Details
-
S7VarPayloadDataItem
public S7VarPayloadDataItem(DataTransportErrorCode returnCode, DataTransportSize transportSize, byte[] data)
-
-
Method Details
-
getReturnCode
-
getTransportSize
-
getData
public byte[] getData() -
serialize
- 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 S7VarPayloadDataItem staticParse(ReadBuffer readBuffer, Object... args) throws ParseException - Throws:
ParseException
-
staticParse
- Throws:
ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-