Package gda.device.detector.xmap
Class XMapNXDetectorDataAppenderInputStream
java.lang.Object
gda.device.detector.xmap.XMapNXDetectorDataAppenderInputStream
- All Implemented Interfaces:
PositionInputStream<NXDetectorDataAppender>
public class XMapNXDetectorDataAppenderInputStream
extends Object
implements PositionInputStream<NXDetectorDataAppender>
Reads a raw HDF5 file from Xia XMap and returns deadtime corrected MCAs and
Regions Of Interest totals.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(int maxToRead) Return at least one element, but no more than maxToRead, waiting until able to do so.
-
Constructor Details
-
XMapNXDetectorDataAppenderInputStream
-
-
Method Details
-
read
public List<NXDetectorDataAppender> read(int maxToRead) throws NoSuchElementException, InterruptedException, DeviceException Description copied from interface:PositionInputStreamReturn at least one element, but no more than maxToRead, waiting until able to do so. The parameter maxToRead is there to protect the caller from potentially receiving too much data in call, not to meet the needs of the detector.- Specified by:
readin interfacePositionInputStream<NXDetectorDataAppender>- Parameters:
maxToRead- the maximum number of elements to read. Must be one or more.- Returns:
- at least one element from the head of the stream, oldest on the left
- Throws:
NoSuchElementException- if the stream will have nothing to returnInterruptedExceptionDeviceException
-