Enum Class ReadType

Object
Enum<ReadType>
ReadType
All Implemented Interfaces:
Serializable, Comparable<ReadType>, Constable

public enum ReadType extends Enum<ReadType>
This enum can be used to distinguish between differet read methods, namely, JAI ImageRead based and Java2D direct read via ImageReader.
Author:
Simone Giannecchini, GeoSolutions SAS, Stefan Alfons Krueger (alfonx), Wikisquare.de : Support for jar:file:foo.jar/bar.properties URLs
  • Enum Constant Details

    • DIRECT_READ

      public static final ReadType DIRECT_READ
    • JAI_IMAGEREAD

      public static final ReadType JAI_IMAGEREAD
    • UNSPECIFIED

      public static final ReadType UNSPECIFIED
  • Method Details

    • values

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

      public static ReadType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDefault

      public static ReadType getDefault()
      Default ReadType enumeration.

      We use the JAI ImageRead as the default type so that we can be sure that we can read very large mosaics with deferred loading.

      Returns:
      the default ReadType.
    • read

      public abstract RenderedImage read(ImageReadParam readParameters, int imageIndex, URL granuleUrl, Rectangle rasterDimensions, ImageReader reader, Hints hints, boolean closeElements)
      Load the raster data from the underlying source with the specified read type.
      Parameters:
      hints - Hints to control the read process
      Returns:
      a RenderedImage instance that matches the provided request parameters as close as possible.
      Throws:
      IOException - in case something bad occurs during the decoding process.