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
FieldsModifier and TypeFieldDescriptionprotected ByteBufferThe input buffer to use for data.protected BinaryStreamReaderThe binary reader for this class. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractArchiveHeader(ByteBuffer inputBuffer) Creates a new header using the specified byte data. -
Method Summary
Modifier and TypeMethodDescriptionboolean[]Get the sensor channel data selection flags.intGets the sensor word size in bits.protected abstract booleanisCompatible(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, waitMethods 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:ArchiveHeaderGet the sensor channel data selection flags.- Specified by:
getChannelSelectionin interfaceArchiveHeader
-
getSensorWordSize
public int getSensorWordSize()Description copied from interface:ArchiveHeaderGets the sensor word size in bits.- Specified by:
getSensorWordSizein interfaceArchiveHeader
-