Package nom.tam.util
Interface FitsOutput
- All Superinterfaces:
ArrayDataOutput
,AutoCloseable
,Closeable
,DataOutput
,FitsIO
,OutputWriter
- All Known Implementing Classes:
BufferedDataOutputStream
,BufferedFile
,FitsFile
,FitsOutputStream
Interface for FITS-specific output. It mainly just provides an #isAtStart()
method that can be used to determine whether or not we are at the head of the
file or stream, in order to decide if an HDU here should be written as
primary or as a FITS extension. The decision is made by
BasicHDU.write(ArrayDataOutput)
and there is no need for
any user interaction beyond it.- Since:
- 1.17
- Author:
- Attila Kovacs
-
Field Summary
Fields inherited from interface nom.tam.util.FitsIO
BITS_OF_1_BYTE, BITS_OF_2_BYTES, BITS_OF_3_BYTES, BITS_OF_4_BYTES, BITS_OF_5_BYTES, BITS_OF_6_BYTES, BITS_OF_7_BYTES, BYTE_1_OF_LONG_MASK, BYTE_2_OF_LONG_MASK, BYTE_3_OF_LONG_MASK, BYTE_4_OF_LONG_MASK, BYTE_MASK, BYTES_IN_BOOLEAN, BYTES_IN_BYTE, BYTES_IN_CHAR, BYTES_IN_DOUBLE, BYTES_IN_FLOAT, BYTES_IN_INTEGER, BYTES_IN_LONG, BYTES_IN_SHORT, DEFAULT_BUFFER_SIZE, HIGH_INTEGER_MASK, INTEGER_MASK, SHORT_MASK, SHORT_OF_LONG_MASK
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether we are currently at the start of this output file or stream.Methods inherited from interface nom.tam.util.ArrayDataOutput
flush, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeArray
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from interface nom.tam.util.OutputWriter
write, write
-
Method Details
-
isAtStart
boolean isAtStart()Checks whether we are currently at the start of this output file or stream.- Returns:
true
if we are currently at the start of stream (where a primary HDU is to be written), orfalse
if we are further along, where HDUs should be written as extensions.- See Also:
-