|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eso.fits.FitsHDUnit
public class FitsHDUnit
FitsData class represents a FITS data unit
Constructor Summary | |
---|---|
FitsHDUnit(java.io.DataInput file,
boolean sflag)
Constructor for FitsHDUnit class given a FITS stream and a internal storage flag. |
|
FitsHDUnit(FitsHeader header,
FitsData data)
Constructor from individual header and data objects. |
Method Summary | |
---|---|
boolean |
canSave()
Check if HD unit can be save to FITS file in place that is a FITS file exists and has space enough. |
void |
closeFile()
Remove all references to the DataInput file from data unit |
FitsData |
getData()
Return the FitsData object in the Header/Data unit |
FitsHeader |
getHeader()
Return the header object in the Header/Data unit |
int |
getType()
Get the type of Header/Data unit as indicated by its header. |
protected void |
saveFile(java.io.RandomAccessFile file)
Save changes of a HD unit to FITS file. |
void |
writeFile(java.io.DataOutput file)
Write FITS header/Data unit to a DataOutput stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FitsHDUnit(java.io.DataInput file, boolean sflag) throws FitsException
file
- DataInput file positioned at the start of the
header/data unitsflag
- Flag for storing data matrix internally
FitsException
public FitsHDUnit(FitsHeader header, FitsData data) throws FitsException
header
- new FitsHeader object to useddata
- new FitsData object associated to header
FitsException
Method Detail |
---|
public int getType()
public boolean canSave()
protected void saveFile(java.io.RandomAccessFile file) throws java.io.IOException, FitsException
IOException,
- FitsException
java.io.IOException
FitsException
public void writeFile(java.io.DataOutput file) throws java.io.IOException, FitsException
file
- DataOutput object to which to write
IOException,
- FitsException
java.io.IOException
FitsException
public void closeFile()
public FitsData getData()
public FitsHeader getHeader()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |