Enum RasterLoadingStrategy

All Implemented Interfaces:
Serializable, Comparable<Raster­Loading­Strategy>, Constable

public enum RasterLoadingStrategy extends Enum<RasterLoadingStrategy>
Time when the "physical" loading of raster data should happen. Some resource implementations may not load data immediately when the read method is invoked, but instead defer the actual loading until the image is rendered. This enumeration gives some control over the time when data loading happens. The different strategies are compromises between memory consumption, redundant loading of same data and early error detection.

Enumeration values are ordered from the most eager strategy to the laziest strategy. The eager strategy is fastest when all pixels are used, at the cost of largest memory consumption. The lazy strategy is more efficient when only a few tiles will be used and those tiles are not known in advance. The lazy strategy is also the only applicable one if the image is too large for holding in memory.


Defined in the sis-storage module

  • Enum Constant Details

  • Method Details

    • values

      public static RasterLoadingStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RasterLoadingStrategy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      Illegal­Argument­Exception - if this enum type has no constant with the specified name
      Null­Pointer­Exception - if the argument is null