Class TransferType<T extends Buffer>

java.lang.Object
org.apache.sis.image.TransferType<T>
Type Parameters:
T - the type of buffer which can be used for transferring data.
All Implemented Interfaces:
Serializable

public final class TransferType<T extends Buffer> extends Object implements Serializable
The type of data used to transfer pixels. Data transfers happen in various Raster methods and in PixelIterator.createWindow(TransferType). The type used for transferring data is not necessarily the same than the type used by the raster for storing data. In particular, byte and short (both signed and unsigned) are converted to int during the transfer.

Raster and PixelIterator transfer data in int[], float[] and double[] arrays. Additionally, PixelIterator uses also IntBuffer, FloatBuffer and DoubleBuffer.

Future evolution: this class may be refactored as an enumeration in a future Java version if JEP 301 is implemented.
Since:
1.0
Version:
1.0
See Also: