Class DBRDecoder


  • public class DBRDecoder
    extends Object
    DBR decoder - deserializes data payload. N N O TTT EEE NN N O O T E_ due to exisiting JCA API (strict constructors, n/a setters), this class is very messy... N NN O O T E sth like DBRType.create(Object data) is missing... N N O T EEE
    Version:
    $id$
    Author:
    Matej Sekoranja
    • Constructor Detail

      • DBRDecoder

        public DBRDecoder()
    • Method Detail

      • getDBR

        public static DBR getDBR​(DBR inDBR,
                                 short dataTypeValue,
                                 int dataCount,
                                 ByteBuffer dataPayloadBuffer)
        Get (deserialize) data payload buffer to DBR structure.
        Parameters:
        inDBR - DBR to be used (set), do not create a new instance of DBR if non-null. DBR type and count must match.
        dataTypeValue - data type, see DBRType.
        dataCount - data type.
        dataPayloadBuffer - data payload buffer received from server, non-null.
        Returns:
        DBR structure, null in case of error.