public interface ArrayDataOutput extends DataOutput, 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
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush the output buffer
|
void |
write(boolean[] buf)
Write an array of boolean's.
|
void |
write(boolean[] buf,
int offset,
int size)
Write a segment of an array of boolean's.
|
void |
write(char[] buf)
Write an array of char's.
|
void |
write(char[] buf,
int offset,
int size)
Write a segment of an array of char's.
|
void |
write(double[] buf)
Write an array of double's.
|
void |
write(double[] buf,
int offset,
int size)
Write a segment of an array of double's.
|
void |
write(float[] buf)
Write an array of float's.
|
void |
write(float[] buf,
int offset,
int size)
Write a segment of an array of float's.
|
void |
write(int[] buf)
Write an array of int's.
|
void |
write(int[] buf,
int offset,
int size)
Write a segment of an array of int's.
|
void |
write(long[] buf)
Write an array of longs.
|
void |
write(long[] buf,
int offset,
int size)
Write a segment of an array of longs.
|
void |
write(short[] buf)
Write an array of shorts.
|
void |
write(short[] buf,
int offset,
int size)
Write a segment of an array of shorts.
|
void |
write(String[] buf)
Write an array of Strings.
|
void |
write(String[] buf,
int offset,
int size)
Write a segment of an array of Strings.
|
void |
writeArray(Object o)
This routine provides efficient writing of arrays of any primitive type.
|
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
void flush() throws IOException
IOException
- if the flush of the underlying stream failedvoid write(boolean[] buf) throws IOException
buf
- array of boolean's.IOException
- if one of the underlying write operations failedvoid write(boolean[] buf, int offset, int size) throws IOException
buf
- array of boolean's.offset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(char[] buf) throws IOException
buf
- array of char's.IOException
- if one of the underlying write operations failedvoid write(char[] buf, int offset, int size) throws IOException
buf
- array of char's.offset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(double[] buf) throws IOException
buf
- array of double's.IOException
- if one of the underlying write operations failedvoid write(double[] buf, int offset, int size) throws IOException
buf
- array of double's.offset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(float[] buf) throws IOException
buf
- array of float's.IOException
- if one of the underlying write operations failedvoid write(float[] buf, int offset, int size) throws IOException
buf
- array of float's.offset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(int[] buf) throws IOException
buf
- array of int'sIOException
- if one of the underlying write operations failedvoid write(int[] buf, int offset, int size) throws IOException
buf
- array of int'soffset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(long[] buf) throws IOException
buf
- array of longsIOException
- if one of the underlying write operations failedvoid write(long[] buf, int offset, int size) throws IOException
buf
- array of longsoffset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(short[] buf) throws IOException
buf
- the value to writeIOException
- if one of the underlying write operations failedvoid write(short[] buf, int offset, int size) throws IOException
buf
- the value to writeoffset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid write(String[] buf) throws IOException
buf
- the array to writeIOException
- if one of the underlying write operations failedvoid write(String[] buf, int offset, int size) throws IOException
buf
- the array to writeoffset
- start index in the arraysize
- number of array elements to writeIOException
- if one of the underlying write operations failedvoid writeArray(Object o) throws IOException
o
- The object to be written. It must be an array of a primitive
type, Object, or String.IOException
- if one of the underlying write operations failedCopyright © 1996–2016 nom-tam-fits. All rights reserved.