package org.helioviewer.jhv.plugins.swek.sources;

import java.io.InputStream;

public interface SWEKParser {

    /**
     * If called the parser should stop all parser operations.
     */
    public abstract void stopParser();

    /**
     * Parses the event stream.
     * 
     * @param downloadInputStream
     *            the stream containing the events in specific source format
     * @return the stream containing the events in standard jhelioviewer format
     */
    public abstract SWEKEventStream parseEventStream(InputStream downloadInputStream);

}

@@ -73,16 +73,138 @@
 tream;%0A%0A
+import org.helioviewer.jhv.plugins.swek.config.SWEKEventType;%0Aimport org.helioviewer.jhv.plugins.swek.config.SWEKSource;%0A%0A
 public i
@@ -500,24 +500,178 @@
 urce format%0A
+     * @param eventType%0A     *            the type of event parsed%0A     * @param swekSource%0A     *            the source from which the events are parsed%0A
      * @retu
@@ -830,14 +830,62 @@
 utStream
+, SWEKEventType eventType, SWEKSource swekSource
 );%0A%0A%7D%0A

Add event type and event source to the SWEKParser