// Path: core/src/main/java/edu/ucdavis/fiehnlab/spectra/hash/core/Spectrum.java
// public interface Spectrum {
// 
//     /**
//      * ion of a spectra
//      * @return
//      */
//     public List<Ion> getIons();
// 
//     /**
//      * convmerts the spectrum to a relative spectra
//      * @return
//      * @param scale
//      */
//     Spectrum toRelative(int scale);
// 
//     /**
//      *
//      * @return
//      */
//     String getOrigin();
// 
//     /**
//      * what kind of a spectra do we have
//      * @return
//      */
//     public SpectraType getType();
// }


import edu.ucdavis.fiehnlab.spectra.hash.core.Spectrum;
import java.io.IOException;
package edu.ucdavis.fiehnlab.spectra.hash.core.io;



/**
 * simple handler to work on received spectra
 */
public interface SpectraHandler {

    /**
     * beginning to read
     */
    void begin() throws IOException;
    /**
     * a spectrum was found, lets do something with it
     * @param spectrum
     */
// Path: core/src/main/java/edu/ucdavis/fiehnlab/spectra/hash/core/Spectrum.java
// public interface Spectrum {
// 
//     /**
//      * ion of a spectra
//      * @return
//      */
//     public List<Ion> getIons();
// 
//     /**
//      * convmerts the spectrum to a relative spectra
//      * @return
//      * @param scale
//      */
//     Spectrum toRelative(int scale);
// 
//     /**
//      *
//      * @return
//      */
//     String getOrigin();
// 
//     /**
//      * what kind of a spectra do we have
//      * @return
//      */
//     public SpectraType getType();
// }


// Path: core/src/main/java/edu/ucdavis/fiehnlab/spectra/hash/core/io/SpectraHandler.java
import edu.ucdavis.fiehnlab.spectra.hash.core.Spectrum;
import java.io.IOException;

package edu.ucdavis.fiehnlab.spectra.hash.core.io;



/**
 * simple handler to work on received spectra
 */
public interface SpectraHandler {

    /**
     * beginning to read
     */
    void begin() throws IOException;
    /**
     * a spectrum was found, lets do something with it
     * @param spectrum
     */
    void handle(Spectrum spectrum);