public class RandomGroupsData extends Data
dataSize, fileOffset, input
Constructor and Description |
---|
RandomGroupsData()
Create the equivalent of a null data element.
|
RandomGroupsData(Object[][] x)
Create a RandomGroupsData object using the specified object to initialize
the data array.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fillHeader(Header h)
Modify a header to point to this data, this differs per subclass, they
all need oder provided different informations to the header.
|
Object |
getData() |
protected long |
getTrueSize()
Get the size of the actual data element.
|
void |
read(ArrayDataInput str)
Read the RandomGroupsData
|
void |
write(ArrayDataOutput str)
Write the RandomGroupsData
|
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
public RandomGroupsData()
public RandomGroupsData(Object[][] x)
x
- The initial data array. This should a two-d array of objects
as described above.protected void fillHeader(Header h) throws FitsException
Data
h
- header to fill with the data from the current data objectFitsException
- if the operation failsprotected long getTrueSize()
public void read(ArrayDataInput str) throws FitsException
read
in interface FitsElement
read
in class Data
str
- The input data streamFitsException
- if the read was unsuccessful.public void write(ArrayDataOutput str) throws FitsException
write
in interface FitsElement
write
in class Data
str
- The output stream on which to write the data.FitsException
- if the write was unsuccessful.Copyright © 1996–2016 nom-tam-fits. All rights reserved.