jj2000.j2k.wavelet.analysis
Class CBlkWTDataInt

java.lang.Object
  |
  +--jj2000.j2k.wavelet.analysis.CBlkWTData
        |
        +--jj2000.j2k.wavelet.analysis.CBlkWTDataInt

public class CBlkWTDataInt
extends CBlkWTData

This is an implementation of the 'CBlkWTData' abstract class for signed 32 bit integer data.

The methods in this class are declared final, so that they can be inlined by inlining compilers.

See Also:
CBlkWTData

Field Summary
 int[] data
          The array where the data is stored
 
Fields inherited from class jj2000.j2k.wavelet.analysis.CBlkWTData
convertFactor, h, m, magbits, n, nROIbp, nROIcoeff, offset, sb, scanw, stepSize, ulx, uly, w, wmseScaling
 
Constructor Summary
CBlkWTDataInt()
           
 
Method Summary
 java.lang.Object getData()
          Returns the array containing the data, or null if there is no data array.
 int[] getDataInt()
          Returns the array containing the data, or null if there is no data array.
 int getDataType()
          Returns the data type of this object, always DataBlk.TYPE_INT.
 void setData(java.lang.Object arr)
          Sets the data array to the specified one.
 void setDataInt(int[] arr)
          Sets the data array to the specified one.
 
Methods inherited from class jj2000.j2k.wavelet.analysis.CBlkWTData
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public int[] data
The array where the data is stored

Constructor Detail

CBlkWTDataInt

public CBlkWTDataInt()
Method Detail

getDataType

public final int getDataType()
Returns the data type of this object, always DataBlk.TYPE_INT.

Specified by:
getDataType in class CBlkWTData
Returns:
The data type of the object, always DataBlk.TYPE_INT
See Also:
DataBlk

getData

public final java.lang.Object getData()
Returns the array containing the data, or null if there is no data array. The returned array is an int array.

Specified by:
getData in class CBlkWTData
Returns:
The array of data (a int[]) or null if there is no data.
See Also:
CBlkWTData.getDataType()

getDataInt

public final int[] getDataInt()
Returns the array containing the data, or null if there is no data array.

Returns:
The array of data or null if there is no data.

setData

public final void setData(java.lang.Object arr)
Sets the data array to the specified one. The provided array must be a int array, otherwise a ClassCastException is thrown. The size of the array is not checked for consistency with the code-block dimensions.

Specified by:
setData in class CBlkWTData
Parameters:
arr - The data array to use. Must be an int array.
See Also:
CBlkWTData.getDataType()

setDataInt

public final void setDataInt(int[] arr)
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.