All Downloads are FREE. Search and download functionalities are using the official Maven repository.

decodes.syncgui.DownloadReader Maven / Gradle / Ivy

Go to download

A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.

The newest version!
package decodes.syncgui;

import java.io.IOException;
import java.io.InputStream;

/**
This provides the interface to call back after a download has completed
or errored-out.
*/
public interface DownloadReader
{
	/**
	  Called to read the download stream. The concrete method should 
	  read the stream until it is finished or the reader is satisfied.
	  @param relpath the relative path downloaded
	  @param obj Object provided when path was enqueued
	  @param ex null means success, if error, this will be the reason.
	*/
	public void readFile(String relurl, InputStream strm)
		throws IOException;

	/**
	  Called when download could not be opened because of an exception.
	  @param ex the exception thrown, most likely will be an instance
	  of IOException or MalformedURLException
	*/
	public void readFailed(String relurl, Exception ex);
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy