Package nom.tam.util
Interface FitsIO
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Subinterfaces:
ArrayDataInput
,ArrayDataOutput
,FitsOutput
,RandomAccess
- All Known Implementing Classes:
BufferedDataInputStream
,BufferedDataOutputStream
,BufferedFile
,FitsFile
,FitsInputStream
,FitsOutputStream
Base interface for reading and writing FITS. It defines the necessary constants common for all reader and writers.
- Author:
- ritchie
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
number of bits in one byte.static final int
number of bits in two byte.static final int
number of bits in three byte.static final int
number of bits in four byte.static final int
number of bits in five byte.static final int
number of bits in six byte.static final int
number of bits in seven byte.static final long
bit mask to get the lowest byte of a long.static final long
bit mask to get the second lowest byte of a long.static final long
bit mask to get the third lowest byte of a long.static final long
bit mask to get the fourth lowest byte of a long.static final int
bit mask to get the lowest byte from an integer.static final int
number of bytes occupied by a boolean.static final int
number of bytes occupied by a byte.static final int
number of bytes occupied by a char.static final int
number of bytes occupied by a double.static final int
number of bytes occupied by a float.static final int
number of bytes occupied by a integer.static final int
number of bytes occupied by a long.static final int
number of bytes occupied by a short.static final int
default buffer size to use unless specified otherwise.static final long
bit mask to get the highest integer from an long.static final long
bit mask to get the lowest integer from an long.static final int
bit mask to get the lowest short of a integer.static final long
bit mask to get the lowest short of a long. -
Method Summary
-
Field Details
-
DEFAULT_BUFFER_SIZE
static final int DEFAULT_BUFFER_SIZEdefault buffer size to use unless specified otherwise.- See Also:
-
BITS_OF_1_BYTE
static final int BITS_OF_1_BYTEnumber of bits in one byte.- See Also:
-
BITS_OF_2_BYTES
static final int BITS_OF_2_BYTESnumber of bits in two byte.- See Also:
-
BITS_OF_3_BYTES
static final int BITS_OF_3_BYTESnumber of bits in three byte.- See Also:
-
BITS_OF_4_BYTES
static final int BITS_OF_4_BYTESnumber of bits in four byte.- See Also:
-
BITS_OF_5_BYTES
static final int BITS_OF_5_BYTESnumber of bits in five byte.- See Also:
-
BITS_OF_6_BYTES
static final int BITS_OF_6_BYTESnumber of bits in six byte.- See Also:
-
BITS_OF_7_BYTES
static final int BITS_OF_7_BYTESnumber of bits in seven byte.- See Also:
-
BYTES_IN_BOOLEAN
static final int BYTES_IN_BOOLEANnumber of bytes occupied by a boolean.- See Also:
-
BYTES_IN_BYTE
static final int BYTES_IN_BYTEnumber of bytes occupied by a byte.- See Also:
-
BYTES_IN_CHAR
static final int BYTES_IN_CHARnumber of bytes occupied by a char.- See Also:
-
BYTES_IN_SHORT
static final int BYTES_IN_SHORTnumber of bytes occupied by a short.- See Also:
-
BYTES_IN_INTEGER
static final int BYTES_IN_INTEGERnumber of bytes occupied by a integer.- See Also:
-
BYTES_IN_LONG
static final int BYTES_IN_LONGnumber of bytes occupied by a long.- See Also:
-
BYTES_IN_FLOAT
static final int BYTES_IN_FLOATnumber of bytes occupied by a float.- See Also:
-
BYTES_IN_DOUBLE
static final int BYTES_IN_DOUBLEnumber of bytes occupied by a double.- See Also:
-
BYTE_MASK
static final int BYTE_MASKbit mask to get the lowest byte from an integer. Or to get an unsigned integer from a byte.- See Also:
-
SHORT_MASK
static final int SHORT_MASKbit mask to get the lowest short of a integer.- See Also:
-
SHORT_OF_LONG_MASK
static final long SHORT_OF_LONG_MASKbit mask to get the lowest short of a long.- See Also:
-
BYTE_1_OF_LONG_MASK
static final long BYTE_1_OF_LONG_MASKbit mask to get the lowest byte of a long.- See Also:
-
BYTE_2_OF_LONG_MASK
static final long BYTE_2_OF_LONG_MASKbit mask to get the second lowest byte of a long.- See Also:
-
BYTE_3_OF_LONG_MASK
static final long BYTE_3_OF_LONG_MASKbit mask to get the third lowest byte of a long.- See Also:
-
BYTE_4_OF_LONG_MASK
static final long BYTE_4_OF_LONG_MASKbit mask to get the fourth lowest byte of a long.- See Also:
-
INTEGER_MASK
static final long INTEGER_MASKbit mask to get the lowest integer from an long.- See Also:
-
HIGH_INTEGER_MASK
static final long HIGH_INTEGER_MASKbit mask to get the highest integer from an long.- See Also:
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-