public class FitsHeap extends java.lang.Object implements FitsElement
| Modifier and Type | Method and Description |
|---|---|
void |
getData(int offset,
java.lang.Object array)
Get data from the heap.
|
long |
getFileOffset()
Get the file offset of the heap
|
long |
getSize()
Return the size of the heap using the more bean compatbile format
|
void |
read(ArrayDataInput str)
Read the heap
|
boolean |
reset()
Reset the input stream to point to the beginning of this element
|
void |
rewrite()
Attempt to rewrite the heap with the current contents.
|
boolean |
rewriteable()
Can this element be rewritten?
|
int |
size()
Return the size of the Heap
|
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 java.io.IOException,
FitsException
rewrite in interface FitsElementjava.io.IOExceptionFitsExceptionpublic boolean reset()
FitsElementreset in interface FitsElementpublic void getData(int offset,
java.lang.Object array)
throws FitsException
offset - The offset at which the data begins.array - The array to be extracted.FitsExceptionpublic int size()
public long getSize()
getSize in interface FitsElementpublic long getFileOffset()
getFileOffset in interface FitsElement