| java.lang.Object jj2000.j2k.wavelet.analysis.CBlkWTData jj2000.j2k.wavelet.analysis.CBlkWTDataFloat
CBlkWTDataFloat | public class CBlkWTDataFloat extends CBlkWTData (Code) | | This is an implementation of the 'CBlkWTData' abstract class for 32 bit
floating point data (float).
The methods in this class are declared final, so that they can
be inlined by inlining compilers.
See Also: CBlkWTData |
Field Summary | |
public float[] | data |
Method Summary | |
final public Object | getData() Returns the array containing the data, or null if there is no
data array. | final public float[] | getDataFloat() Returns the array containing the data, or null if there is no
data array. | final public int | getDataType() Returns the identifier of this data type, TYPE_FLOAT,
as defined in DataBlk.
The type of data stored. | final public void | setData(Object arr) Sets the data array to the specified one. | final public void | setDataFloat(float[] arr) Sets the data array to the specified one. |
data | public float[] data(Code) | | The array where the data is stored
|
getData | final public Object getData()(Code) | | Returns the array containing the data, or null if there is no
data array. The returned array is a float array.
The array of data (a float[]) or null if there is nodata. |
getDataFloat | final public float[] getDataFloat()(Code) | | Returns the array containing the data, or null if there is no
data array.
The array of data or null if there is no data. |
getDataType | final public int getDataType()(Code) | | Returns the identifier of this data type, TYPE_FLOAT,
as defined in DataBlk.
The type of data stored. Always DataBlk.TYPE_FLOAT See Also: DataBlk.TYPE_FLOAT |
setData | final public void setData(Object arr)(Code) | | Sets the data array to the specified one. The provided array
must be a float array, otherwise a ClassCastException is
thrown. The size of the array is not checked for consistency
with the code-block dimensions.
Parameters: arr - The data array to use. Must be a float array. |
setDataFloat | final public void setDataFloat(float[] arr)(Code) | | Sets the data array to the specified one. The size of the array
is not checked for consistency with the code-block dimensions. This
method is more efficient than 'setData()'.
Parameters: arr - The data array to use. |
|
|