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 file offset of the heap
|
long |
getSize()
Return the size of the heap using the more bean compatible format
|
void |
read(ArrayDataInput str)
Read the heap
|
boolean |
reset()
Reset the input stream to point to the beginning of this element
|
void |
rewrite()
Rewrite the contents of the element in place.
|
boolean |
rewriteable() |
int |
size() |
void |
write(ArrayDataOutput str)
Write the heap
|
public void getData(int offset, Object array) throws FitsException
offset
- The offset at which the data begins.array
- The array to be extracted.FitsException
- if the operation failedpublic long getFileOffset()
getFileOffset
in interface FitsElement
public long getSize()
getSize
in interface FitsElement
public void read(ArrayDataInput str) throws FitsException
read
in interface FitsElement
str
- The input data streamFitsException
- if the read was unsuccessful.public boolean reset()
FitsElement
reset
in interface FitsElement
public void rewrite() throws IOException, FitsException
FitsElement
rewrite
in interface FitsElement
IOException
- if the rewrite was unsuccessful.FitsException
- if the rewrite was unsuccessful.public boolean rewriteable()
rewriteable
in interface FitsElement
true
if this element can be rewritten?public int size()
public void write(ArrayDataOutput str) throws FitsException
write
in interface FitsElement
str
- The data sink.FitsException
- if the write was unsuccessful.Copyright © 1996–2016 nom-tam-fits. All rights reserved.