com.cosylab.epics.caj.impl
Class DBRDecoder

java.lang.Object
  extended by com.cosylab.epics.caj.impl.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 Summary
DBRDecoder()
           
 
Method Summary
static gov.aps.jca.dbr.DBR getDBR(gov.aps.jca.dbr.DBR inDBR, short dataTypeValue, int dataCount, ByteBuffer dataPayloadBuffer)
          Get (deserialize) data payload buffer to DBR structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRDecoder

public DBRDecoder()
Method Detail

getDBR

public static gov.aps.jca.dbr.DBR getDBR(gov.aps.jca.dbr.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.


Copyright © 2004-2013 Cosylab. All Rights Reserved.