Package org.geotools.coverage.io
Enum Class ReadType
- All Implemented Interfaces:
Serializable
,Comparable<ReadType>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ReadType
DefaultReadType
enumeration.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.static ReadType
Returns the enum constant of this class with the specified name.static ReadType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIRECT_READ
-
JAI_IMAGEREAD
-
UNSPECIFIED
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getDefault
DefaultReadType
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.
-