Class DataHeaderFactory

java.lang.Object
noaa.coastwatch.io.noaa1b.DataHeaderFactory

public class DataHeaderFactory extends Object
The DataHeaderFactory creates data header objects using the byte data at the beginning of a NOAA 1b file.
Since:
3.2.2
Author:
Peter Hollemans
  • Constructor Details

    • DataHeaderFactory

      public DataHeaderFactory()
  • Method Details

    • create

      public static DataHeader create(ByteChannel channel, boolean isByteSwapped) throws IOException
      Creates a new data header.
      Parameters:
      channel - the channel of byte data to read.
      isByteSwapped - the byte swapped flag, true if the data is in little endian byte order.
      Returns:
      a data header object, or null of no header could be found that is appropriate for the data.
      Throws:
      IOException - if an error occurred reading the byte data.