|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnom.tam.fits.Data
public abstract class Data
This class provides methods to access the data segment of an HDU.
| Field Summary | |
|---|---|
protected int |
dataSize
The size of the data when last read |
protected long |
fileOffset
The starting location of the data when last read |
protected RandomAccess |
input
The inputstream used. |
| Constructor Summary | |
|---|---|
Data()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
getData()
Return the data array object. |
long |
getFileOffset()
Get the file offset |
java.lang.Object |
getKernel()
Return the non-FITS data object |
long |
getSize()
Get the size of the data element in bytes |
abstract void |
read(ArrayDataInput i)
Read a data array into the current object and if needed position to the beginning of the next FITS block. |
void |
rewrite()
Rewrite the contents of the element in place. |
boolean |
rewriteable()
Can this element be rewritten? |
protected void |
setFileOffset(java.lang.Object o)
Set the fields needed for a re-read |
abstract void |
write(ArrayDataOutput o)
Write the data -- including any buffering needed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long fileOffset
protected int dataSize
protected RandomAccess input
| Constructor Detail |
|---|
public Data()
| Method Detail |
|---|
public long getFileOffset()
getFileOffset in interface FitsElementprotected void setFileOffset(java.lang.Object o)
public abstract void write(ArrayDataOutput o)
throws FitsException
write in interface FitsElemento - The output stream on which to write the data.
FitsException
public abstract void read(ArrayDataInput i)
throws FitsException
read in interface FitsElementi - The input data stream
FitsException
public void rewrite()
throws FitsException
FitsElement
rewrite in interface FitsElementFitsExceptionpublic boolean rewriteable()
FitsElement
rewriteable in interface FitsElementpublic long getSize()
getSize in interface FitsElement
public abstract java.lang.Object getData()
throws FitsException
FitsException
public java.lang.Object getKernel()
throws FitsException
FitsException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||