Package noaa.coastwatch.io.noaa1b
Class AbstractArchiveHeader
java.lang.Object
noaa.coastwatch.io.noaa1b.AbstractArchiveHeader
- All Implemented Interfaces:
ArchiveHeader
The
AbstractArchiveHeader
class reads header data
from NOAA 1b data files.- Since:
- 3.2.2
- Author:
- Peter Hollemans
-
Field Summary
Modifier and TypeFieldDescriptionprotected ByteBuffer
The input buffer to use for data.protected BinaryStreamReader
The binary reader for this class. -
Constructor Summary
ConstructorDescriptionAbstractArchiveHeader
(ByteBuffer inputBuffer) Creates a new header using the specified byte data. -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
Get the sensor channel data selection flags.int
Gets the sensor word size in bits.protected abstract boolean
isCompatible
(ByteBuffer inputBuffer) Determines if the byte buffer data is compatible with this header.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface noaa.coastwatch.io.noaa1b.ArchiveHeader
getHeaderSize
-
Field Details
-
reader
The binary reader for this class. -
inputBuffer
The input buffer to use for data.
-
-
Constructor Details
-
AbstractArchiveHeader
Creates a new header using the specified byte data.- Parameters:
inputBuffer
- the buffer to read for byte data.- Throws:
IOException
- if an error occurred checking the data.
-
-
Method Details
-
isCompatible
Determines if the byte buffer data is compatible with this header. -
getChannelSelection
public boolean[] getChannelSelection()Description copied from interface:ArchiveHeader
Get the sensor channel data selection flags.- Specified by:
getChannelSelection
in interfaceArchiveHeader
-
getSensorWordSize
public int getSensorWordSize()Description copied from interface:ArchiveHeader
Gets the sensor word size in bits.- Specified by:
getSensorWordSize
in interfaceArchiveHeader
-