public class DataHeaderFactory
extends java.lang.Object
DataHeaderFactory
creates data header
objects using the byte data at the beginning of a NOAA 1b file.Constructor and Description |
---|
DataHeaderFactory() |
Modifier and Type | Method and Description |
---|---|
static DataHeader |
create(java.nio.channels.ByteChannel channel,
boolean isByteSwapped)
Creates a new data header.
|
public static DataHeader create(java.nio.channels.ByteChannel channel, boolean isByteSwapped) throws java.io.IOException
channel
- the channel of byte data to read.isByteSwapped
- the byte swapped flag, true if the data
is in little endian byte order.java.io.IOException
- if an error occurred reading the byte
data.