Class BaSyxVABTCPPayloadCodec
- java.lang.Object
-
- de.iip_ecosphere.platform.support.aas.basyx.BaSyxVABTCPPayloadCodec
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
public class BaSyxVABTCPPayloadCodec extends java.lang.Object implements de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodecA BaSyx TCP payload codec in the style of TCP VAB, but on generic payload. We introduced this codec because TCP VAB closes its connection after each data frame.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.charset.Charsetcharset
-
Constructor Summary
Constructors Constructor Description BaSyxVABTCPPayloadCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(byte[] data, de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadConsumer consumer)intdecodeDataLength(byte[] data)byte[]encode(java.lang.String info, byte[] payload)java.nio.charset.CharsetgetCharset()intgetDataBytesLength()de.iip_ecosphere.platform.support.SchemaintendedSchema()voidsetCharset(java.nio.charset.Charset charset)
-
-
-
Method Detail
-
getCharset
public java.nio.charset.Charset getCharset()
- Specified by:
getCharsetin interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
setCharset
public void setCharset(java.nio.charset.Charset charset)
- Specified by:
setCharsetin interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
intendedSchema
public de.iip_ecosphere.platform.support.Schema intendedSchema()
- Specified by:
intendedSchemain interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
encode
public byte[] encode(java.lang.String info, byte[] payload)- Specified by:
encodein interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
getDataBytesLength
public int getDataBytesLength()
- Specified by:
getDataBytesLengthin interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
decodeDataLength
public int decodeDataLength(byte[] data)
- Specified by:
decodeDataLengthin interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
decode
public void decode(byte[] data, de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadConsumer consumer)- Specified by:
decodein interfacede.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec
-
-