|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnom.tam.fits.Data
This class provides methods to access the data segment of an HDU.
| Field Summary | |
protected Object |
dataArray
This is the object which contains the actual data for the HDU. |
| Constructor Summary | |
Data()
|
|
| Method Summary | |
Object |
getData()
Return the data array object. |
int |
getPaddedSize()
Get the size of the entire data area including any padding. |
int |
getPadding()
Get the amount of padding needed to fill in or skip to the beginning of the next FITS block. |
int |
getTrueSize()
Get the size of the actual data elements. |
void |
read(BufferedDataInputStream i)
Read a data array into the current object and if needed position to the beginning of the next FITS block. |
protected void |
readTrueData(BufferedDataInputStream i)
Read in the actual data portion. |
void |
write(BufferedDataOutputStream o)
Write the data -- including any buffering needed |
protected void |
writeTrueData(BufferedDataOutputStream o)
Write only the actual data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Object dataArray
| Constructor Detail |
public Data()
| Method Detail |
public void write(BufferedDataOutputStream o)
throws FitsException
o - The output stream on which to write the data.
FitsException
public void read(BufferedDataInputStream i)
throws FitsException
i - The input data stream
FitsException
protected void writeTrueData(BufferedDataOutputStream o)
throws FitsException
o - The output stream on which to write the data.
FitsException
protected void readTrueData(BufferedDataInputStream i)
throws FitsException
i - The input stream.
FitsExceptionpublic int getPadding()
public int getTrueSize()
public int getPaddedSize()
public Object getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||