Class TransferType<T extends Buffer>

Object
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 Pixel­Iterator​.create­Window(Transfer­Type). 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 Pixel­Iterator transfer data in int[], float[] and double[] arrays. Additionally, Pixel­Iterator uses also Int­Buffer, Float­Buffer and Double­Buffer.

Future evolution

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