Package org.epics.archiverappliance.data
Class ByteBufSampleValue
java.lang.Object
org.epics.archiverappliance.data.ByteBufSampleValue
- All Implemented Interfaces:
SampleValue,org.json.simple.JSONAware
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetStringValue(int index) getValue()getValue(int index) Return the value as a ByteBuffer that is ready to read.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.epics.archiverappliance.data.SampleValue
toString
-
Constructor Details
-
ByteBufSampleValue
-
-
Method Details
-
getValueAsBytes
Description copied from interface:SampleValueReturn the value as a ByteBuffer that is ready to read.- Specified by:
getValueAsBytesin interfaceSampleValue- Returns:
- ByteBuffer
-
equals
-
hashCode
public int hashCode() -
toJSONString
- Specified by:
toJSONStringin interfaceorg.json.simple.JSONAware- Specified by:
toJSONStringin interfaceSampleValue
-
getValues
- Specified by:
getValuesin interfaceSampleValue
-
getValue
- Specified by:
getValuein interfaceSampleValue
-
getValue
- Specified by:
getValuein interfaceSampleValue
-
getStringValue
- Specified by:
getStringValuein interfaceSampleValue
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceSampleValue
-