Package org.epics.archiverappliance.data
Class ByteBufSampleValue
- java.lang.Object
-
- org.epics.archiverappliance.data.ByteBufSampleValue
-
- All Implemented Interfaces:
SampleValue
public class ByteBufSampleValue extends Object implements SampleValue
A sample value that encapsulates a byte buffer. This is principally as the "value" of a EPICS V4 PVStructure that is not mapped to any of the standard DBR types.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description ByteBufSampleValue(ByteBuffer buf)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
getElementCount()
String
getStringValue(int index)
Number
getValue()
Number
getValue(int index)
ByteBuffer
getValueAsBytes()
Return the value as a ByteBuffer that is ready to read.List
getValues()
int
hashCode()
String
toJSONString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.epics.archiverappliance.data.SampleValue
toString
-
-
-
-
Constructor Detail
-
ByteBufSampleValue
public ByteBufSampleValue(ByteBuffer buf)
-
-
Method Detail
-
getValueAsBytes
public ByteBuffer getValueAsBytes()
Description copied from interface:SampleValue
Return the value as a ByteBuffer that is ready to read.- Specified by:
getValueAsBytes
in interfaceSampleValue
- Returns:
- ByteBuffer
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceSampleValue
-
getValues
public List getValues()
- Specified by:
getValues
in interfaceSampleValue
-
getValue
public Number getValue(int index)
- Specified by:
getValue
in interfaceSampleValue
-
getValue
public Number getValue()
- Specified by:
getValue
in interfaceSampleValue
-
getStringValue
public String getStringValue(int index)
- Specified by:
getStringValue
in interfaceSampleValue
-
getElementCount
public int getElementCount()
- Specified by:
getElementCount
in interfaceSampleValue
-
-