public class FitsHeap extends Object implements FitsElement
| Modifier and Type | Method and Description |
|---|---|
void |
getData(int offset,
Object array)
Get data from the heap.
|
long |
getFileOffset()
Get the byte at which this element begins.
|
int |
getOffset()
Get the current offset within the heap.
|
long |
getSize()
The size of this element in bytes
|
void |
read(ArrayDataInput str)
Read the heap
|
void |
rewrite()
Attempt to rewrite the heap with the current contents.
|
boolean |
rewriteable()
Can this element be rewritten?
|
int |
size() |
void |
write(ArrayDataOutput str)
Write the heap
|
public void read(ArrayDataInput str) throws FitsException
read in interface FitsElementstr - The input source.FitsExceptionpublic void write(ArrayDataOutput str) throws FitsException
write in interface FitsElementstr - The data sink.FitsExceptionpublic boolean rewriteable()
FitsElementrewriteable in interface FitsElementpublic void rewrite()
throws IOException,
FitsException
rewrite in interface FitsElementIOExceptionFitsExceptionpublic void getData(int offset,
Object array)
throws FitsException
offset - The offset at which the data begins.array - The array to be extracted.FitsExceptionpublic int getOffset()
public int size()
public long getSize()
FitsElementgetSize in interface FitsElementpublic long getFileOffset()
FitsElementgetFileOffset in interface FitsElementCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.