Class PayloadConverter
- java.lang.Object
-
- org.apache.plc4x.java.opcua.protocol.chunk.PayloadConverter
-
public class PayloadConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description PayloadConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PayloadfromStream(byte[] payload, boolean extensible)static MessagePDUfromStream(ByteBuffer chunkBuffer, boolean response, boolean encrypted)static MessagePDUpduFromStream(byte[] message, boolean response)static BinaryPayloadtoBinary(ExtensiblePayload extensible)static BinaryPayloadtoBinary(Payload payload)static ExtensiblePayloadtoExtensible(BinaryPayload binary)static byte[]toStream(MessagePDU apdu)static byte[]toStream(Payload payload)
-
-
-
Method Detail
-
toBinary
public static BinaryPayload toBinary(Payload payload) throws SerializationException
- Throws:
SerializationException
-
toBinary
public static BinaryPayload toBinary(ExtensiblePayload extensible) throws SerializationException
- Throws:
SerializationException
-
toExtensible
public static ExtensiblePayload toExtensible(BinaryPayload binary) throws ParseException
- Throws:
ParseException
-
toStream
public static byte[] toStream(Payload payload) throws SerializationException
- Throws:
SerializationException
-
toStream
public static byte[] toStream(MessagePDU apdu) throws SerializationException
- Throws:
SerializationException
-
fromStream
public static Payload fromStream(byte[] payload, boolean extensible) throws ParseException
- Throws:
ParseException
-
fromStream
public static MessagePDU fromStream(ByteBuffer chunkBuffer, boolean response, boolean encrypted) throws ParseException
- Throws:
ParseException
-
pduFromStream
public static MessagePDU pduFromStream(byte[] message, boolean response) throws ParseException
- Throws:
ParseException
-
-