Package nom.tam.util
Interface FitsIO
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Subinterfaces:
ArrayDataInput
,ArrayDataOutput
,RandomAccess
- All Known Implementing Classes:
BufferedDataInputStream
,BufferedDataOutputStream
,BufferedFile
public interface FitsIO extends java.io.Closeable
super closable interface for all fits reader/writers. It defines the necessary constants common for all reader and writers.- Author:
- ritchie
-
-
Field Summary
Fields Modifier and Type Field Description static int
BITS_OF_1_BYTE
number of bits in one byte.static int
BITS_OF_2_BYTES
number of bits in two byte.static int
BITS_OF_3_BYTES
number of bits in three byte.static int
BITS_OF_4_BYTES
number of bits in four byte.static int
BITS_OF_5_BYTES
number of bits in five byte.static int
BITS_OF_6_BYTES
number of bits in six byte.static int
BITS_OF_7_BYTES
number of bits in seven byte.static long
BYTE_1_OF_LONG_MASK
bit mask to get the lowest byte of a long.static long
BYTE_2_OF_LONG_MASK
bit mask to get the second lowest byte of a long.static long
BYTE_3_OF_LONG_MASK
bit mask to get the third lowest byte of a long.static long
BYTE_4_OF_LONG_MASK
bit mask to get the fourth lowest byte of a long.static int
BYTE_MASK
bit mask to get the lowest byte from an integer.static int
BYTES_IN_BOOLEAN
number of bytes occupied by a boolean.static int
BYTES_IN_BYTE
number of bytes occupied by a byte.static int
BYTES_IN_CHAR
number of bytes occupied by a char.static int
BYTES_IN_DOUBLE
number of bytes occupied by a double.static int
BYTES_IN_FLOAT
number of bytes occupied by a float.static int
BYTES_IN_INTEGER
number of bytes occupied by a integer.static int
BYTES_IN_LONG
number of bytes occupied by a long.static int
BYTES_IN_SHORT
number of bytes occupied by a short.static int
DEFAULT_BUFFER_SIZE
default buffer size to use if none is specified.static long
HIGH_INTEGER_MASK
bit mask to get the highest integer from an long.static long
INTEGER_MASK
bit mask to get the lowest integer from an long.static int
SHORT_MASK
bit mask to get the lowest short of a integer.static long
SHORT_OF_LONG_MASK
bit mask to get the lowest short of a long.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
-
-
-
Field Detail
-
DEFAULT_BUFFER_SIZE
static final int DEFAULT_BUFFER_SIZE
default buffer size to use if none is specified.- See Also:
- Constant Field Values
-
BITS_OF_1_BYTE
static final int BITS_OF_1_BYTE
number of bits in one byte.- See Also:
- Constant Field Values
-
BITS_OF_2_BYTES
static final int BITS_OF_2_BYTES
number of bits in two byte.- See Also:
- Constant Field Values
-
BITS_OF_3_BYTES
static final int BITS_OF_3_BYTES
number of bits in three byte.- See Also:
- Constant Field Values
-
BITS_OF_4_BYTES
static final int BITS_OF_4_BYTES
number of bits in four byte.- See Also:
- Constant Field Values
-
BITS_OF_5_BYTES
static final int BITS_OF_5_BYTES
number of bits in five byte.- See Also:
- Constant Field Values
-
BITS_OF_6_BYTES
static final int BITS_OF_6_BYTES
number of bits in six byte.- See Also:
- Constant Field Values
-
BITS_OF_7_BYTES
static final int BITS_OF_7_BYTES
number of bits in seven byte.- See Also:
- Constant Field Values
-
BYTES_IN_BOOLEAN
static final int BYTES_IN_BOOLEAN
number of bytes occupied by a boolean.- See Also:
- Constant Field Values
-
BYTES_IN_BYTE
static final int BYTES_IN_BYTE
number of bytes occupied by a byte.- See Also:
- Constant Field Values
-
BYTES_IN_CHAR
static final int BYTES_IN_CHAR
number of bytes occupied by a char.- See Also:
- Constant Field Values
-
BYTES_IN_SHORT
static final int BYTES_IN_SHORT
number of bytes occupied by a short.- See Also:
- Constant Field Values
-
BYTES_IN_INTEGER
static final int BYTES_IN_INTEGER
number of bytes occupied by a integer.- See Also:
- Constant Field Values
-
BYTES_IN_LONG
static final int BYTES_IN_LONG
number of bytes occupied by a long.- See Also:
- Constant Field Values
-
BYTES_IN_FLOAT
static final int BYTES_IN_FLOAT
number of bytes occupied by a float.- See Also:
- Constant Field Values
-
BYTES_IN_DOUBLE
static final int BYTES_IN_DOUBLE
number of bytes occupied by a double.- See Also:
- Constant Field Values
-
BYTE_MASK
static final int BYTE_MASK
bit mask to get the lowest byte from an integer. Or to get an unsigned integer from a byte.- See Also:
- Constant Field Values
-
SHORT_MASK
static final int SHORT_MASK
bit mask to get the lowest short of a integer.- See Also:
- Constant Field Values
-
SHORT_OF_LONG_MASK
static final long SHORT_OF_LONG_MASK
bit mask to get the lowest short of a long.- See Also:
- Constant Field Values
-
BYTE_1_OF_LONG_MASK
static final long BYTE_1_OF_LONG_MASK
bit mask to get the lowest byte of a long.- See Also:
- Constant Field Values
-
BYTE_2_OF_LONG_MASK
static final long BYTE_2_OF_LONG_MASK
bit mask to get the second lowest byte of a long.- See Also:
- Constant Field Values
-
BYTE_3_OF_LONG_MASK
static final long BYTE_3_OF_LONG_MASK
bit mask to get the third lowest byte of a long.- See Also:
- Constant Field Values
-
BYTE_4_OF_LONG_MASK
static final long BYTE_4_OF_LONG_MASK
bit mask to get the fourth lowest byte of a long.- See Also:
- Constant Field Values
-
INTEGER_MASK
static final long INTEGER_MASK
bit mask to get the lowest integer from an long.- See Also:
- Constant Field Values
-
HIGH_INTEGER_MASK
static final long HIGH_INTEGER_MASK
bit mask to get the highest integer from an long.- See Also:
- Constant Field Values
-
-