public interface FitsElement
Modifier and Type | Method and Description |
---|---|
long |
getFileOffset() |
long |
getSize() |
void |
read(ArrayDataInput in)
Read a data array into the current object and if needed position to the
beginning of the next FITS block.
|
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() |
void |
write(ArrayDataOutput out)
Write the contents of the element to a data sink.
|
long getFileOffset()
long getSize()
void read(ArrayDataInput in) throws FitsException, java.io.IOException
in
- The input data streamFitsException
- if the read was unsuccessful.java.io.IOException
- if the read was unsuccessful.boolean reset()
void rewrite() throws FitsException, java.io.IOException
FitsException
- if the rewrite was unsuccessful.java.io.IOException
- if the rewrite was unsuccessful.boolean rewriteable()
true
if this element can be rewritten?void write(ArrayDataOutput out) throws FitsException, java.io.IOException
out
- The data sink.FitsException
- if the write was unsuccessful.java.io.IOException
- if the write was unsuccessful.