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 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_MASKModifier and TypeFieldDescriptionstatic final intnumber of bits in one byte.static final intnumber of bits in two byte.static final intnumber of bits in three byte.static final intnumber of bits in four byte.static final intnumber of bits in five byte.static final intnumber of bits in six byte.static final intnumber of bits in seven byte.static final longbit mask to get the lowest byte of a long.static final longbit mask to get the second lowest byte of a long.static final longbit mask to get the third lowest byte of a long.static final longbit mask to get the fourth lowest byte of a long.static final intbit mask to get the lowest byte from an integer.static final intnumber of bytes occupied by a boolean.static final intnumber of bytes occupied by a byte.static final intnumber of bytes occupied by a char.static final intnumber of bytes occupied by a double.static final intnumber of bytes occupied by a float.static final intnumber of bytes occupied by a integer.static final intnumber of bytes occupied by a long.static final intnumber of bytes occupied by a short.static final intdefault buffer size to use unless specified otherwise.static final longbit mask to get the highest integer from an long.static final longbit mask to get the lowest integer from an long.static final intbit mask to get the lowest short of a integer.static final longbit mask to get the lowest short of a long. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether we are currently at the start of this output file or stream.Methods inherited from interface ArrayDataOutput
flush, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeArrayModifier and TypeMethodDescriptionvoidflush()Flush the output bufferdefault voidwrite(boolean[] buf) Write an array of boolean's.voidwrite(boolean[] buf, int offset, int size) Write a segment of an array of boolean's.default voidwrite(char[] buf) Write an array of char's.voidwrite(char[] buf, int offset, int size) Write a segment of an array of char's.default voidwrite(double[] buf) Write an array of double's.voidwrite(double[] buf, int offset, int size) Write a segment of an array of double's.default voidwrite(float[] buf) Write an array of float's.voidwrite(float[] buf, int offset, int size) Write a segment of an array of float's.default voidwrite(int[] buf) Write an array of int's.voidwrite(int[] buf, int offset, int size) Write a segment of an array of int's.default voidwrite(long[] buf) Write an array of longs.voidwrite(long[] buf, int offset, int size) Write a segment of an array of longs.default voidwrite(short[] buf) Write an array of shorts.voidwrite(short[] buf, int offset, int size) Write a segment of an array of shorts.default voidWrite an array of booleans, including legalnullvalues.default voidWrite a segment of an array of booleans, possibly including legalnullvalues.default voidWrite an array of Strings.voidWrite a segment of an array of Strings.voidwriteArray(Object o) Writes the contents of a Java array to the output translating the data to the required binary representation.Methods inherited from interface DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from interface OutputWriter
write, write
-
Method Details
-
isAtStart
boolean isAtStart()Checks whether we are currently at the start of this output file or stream.- Returns:
trueif we are currently at the start of stream (where a primary HDU is to be written), orfalseif we are further along, where HDUs should be written as extensions.- See Also:
-