uk.ac.starlink.splat.iface
Interface SpectrumIO.Watch

Enclosing class:
SpectrumIO

public static interface SpectrumIO.Watch

Interface for objects that wish to be informed about the result of spectrum load attempts performed by addSpectra(). One or other of the methods will be called for each load attempt.


Method Summary
 void loadFailed(SpectrumIO.Props props, Throwable error)
          Reports that a load attempt for the given props failed.
 void loadSucceeded(SpectrumIO.Props props)
          Reports that a spectrum with given props was successfully loaded.
 

Method Detail

loadSucceeded

void loadSucceeded(SpectrumIO.Props props)
Reports that a spectrum with given props was successfully loaded.

Parameters:
props - props object giving spectrum characteristics

loadFailed

void loadFailed(SpectrumIO.Props props,
                Throwable error)
Reports that a load attempt for the given props failed.

Parameters:
props - props object giving spectrum characteristics
error - exception resulting from load attempt


Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.