|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nom.tam.fits.FitsHeap
public class FitsHeap
This class supports the FITS heap. This is currently used for variable length columns in binary tables.
Method Summary | |
---|---|
void |
getData(int offset,
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void read(ArrayDataInput str) throws FitsException
read
in interface FitsElement
str
- The input source.
FitsException
public void write(ArrayDataOutput str) throws FitsException
write
in interface FitsElement
str
- The data sink.
FitsException
public boolean rewriteable()
FitsElement
rewriteable
in interface FitsElement
public void rewrite() throws java.io.IOException, FitsException
rewrite
in interface FitsElement
java.io.IOException
FitsException
public void getData(int offset, java.lang.Object array) throws FitsException
offset
- The offset at which the data begins.array
- The array to be extracted.
FitsException
public int getOffset()
public int size()
public long getSize()
FitsElement
getSize
in interface FitsElement
public long getFileOffset()
FitsElement
getFileOffset
in interface FitsElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |