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

public interface FitsIO extends Closeable
Base interface for reading and writing FITS. It defines the necessary constants common for all reader and writers.
Author:
ritchie
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Modifier and Type
    Method
    Description
    void
     
  • Field Details

    • DEFAULT_BUFFER_SIZE

      static final int DEFAULT_BUFFER_SIZE
      default buffer size to use unless specified otherwise.
      See Also:
    • BITS_OF_1_BYTE

      static final int BITS_OF_1_BYTE
      number of bits in one byte.
      See Also:
    • BITS_OF_2_BYTES

      static final int BITS_OF_2_BYTES
      number of bits in two byte.
      See Also:
    • BITS_OF_3_BYTES

      static final int BITS_OF_3_BYTES
      number of bits in three byte.
      See Also:
    • BITS_OF_4_BYTES

      static final int BITS_OF_4_BYTES
      number of bits in four byte.
      See Also:
    • BITS_OF_5_BYTES

      static final int BITS_OF_5_BYTES
      number of bits in five byte.
      See Also:
    • BITS_OF_6_BYTES

      static final int BITS_OF_6_BYTES
      number of bits in six byte.
      See Also:
    • BITS_OF_7_BYTES

      static final int BITS_OF_7_BYTES
      number of bits in seven byte.
      See Also:
    • BYTES_IN_BOOLEAN

      static final int BYTES_IN_BOOLEAN
      number of bytes occupied by a boolean.
      See Also:
    • BYTES_IN_BYTE

      static final int BYTES_IN_BYTE
      number of bytes occupied by a byte.
      See Also:
    • BYTES_IN_CHAR

      static final int BYTES_IN_CHAR
      number of bytes occupied by a char.
      See Also:
    • BYTES_IN_SHORT

      static final int BYTES_IN_SHORT
      number of bytes occupied by a short.
      See Also:
    • BYTES_IN_INTEGER

      static final int BYTES_IN_INTEGER
      number of bytes occupied by a integer.
      See Also:
    • BYTES_IN_LONG

      static final int BYTES_IN_LONG
      number of bytes occupied by a long.
      See Also:
    • BYTES_IN_FLOAT

      static final int BYTES_IN_FLOAT
      number of bytes occupied by a float.
      See Also:
    • BYTES_IN_DOUBLE

      static final int BYTES_IN_DOUBLE
      number of bytes occupied by a double.
      See Also:
    • 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:
    • SHORT_MASK

      static final int SHORT_MASK
      bit mask to get the lowest short of a integer.
      See Also:
    • SHORT_OF_LONG_MASK

      static final long SHORT_OF_LONG_MASK
      bit mask to get the lowest short of a long.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • INTEGER_MASK

      static final long INTEGER_MASK
      bit mask to get the lowest integer from an long.
      See Also:
    • HIGH_INTEGER_MASK

      static final long HIGH_INTEGER_MASK
      bit mask to get the highest integer from an long.
      See Also:
  • Method Details