public enum ReadType extends Enum<ReadType>
Enum Constant and Description |
---|
DIRECT_READ |
JAI_IMAGEREAD |
UNSPECIFIED |
Modifier and Type | Method and Description |
---|---|
static ReadType |
getDefault()
Default
ReadType 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 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadType DIRECT_READ
public static final ReadType JAI_IMAGEREAD
public static final ReadType UNSPECIFIED
public static ReadType[] values()
for (ReadType c : ReadType.values()) System.out.println(c);
public static ReadType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ReadType getDefault()
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.
ReadType
.public abstract RenderedImage read(ImageReadParam readParameters, int imageIndex, URL granuleUrl, Rectangle rasterDimensions, ImageReader reader, Hints hints, boolean closeElements)
hints
- Hints
to control the read processRenderedImage
instance that matches the provided request parameters as
close as possible.IOException
- in case something bad occurs during the decoding process.Copyright © 1996–2022 Geotools. All rights reserved.