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

lritdcs.LritFileReaderIF 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 lritdcs;

import java.io.IOException;

import lrgs.common.DcpMsg;

public interface LritFileReaderIF
{
	/**
	  Loads the specified LRIT file.
	  @throws IOException if IO error.
	  @throws BadMessageException if invalid LRIT file header.
	*/
	public void load()
		throws IOException, BadMessageException;
	
	/**
	  Checks to see if the header is complete and has a valid CRC16 checksum.
	  Returns true if header is complete and valid, false otherwise.
	*/
	public boolean checkHeader();
	
	/**
	  Checks whether the length of the file equals the value stored in the
	  header.
	  @returns true if length is correct, false if incorrect.
	*/
	public boolean checkLength();
	
	/**
	  Checks the CRC at the end of the entire file.
	  @returns true if file is valid, false if not.
	*/
	public boolean checkCRC();
	
	/**
	 * @return next message in file or null if this is the end of file.
	 * @throws IOException
	 */
	public DcpMsg getNextMsg()
		throws IOException;
	
	public void close();



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy