public class JPEG2000ReaderSettings extends Object implements ReaderSettings
The format implementation supports a set of decoder implementations to use as a fallback. Use the
JPEG2000ReaderSettings.DecoderSpec
enum to configure precedence of decoder implementations. The format
implementation utilizes the configured decoders in the given order. If a decoding process results
in any error the next decoder in chain will be utilized as a fallback. Currently Jadice supports
its own decoder designated by JPEG2000ReaderSettings.DecoderSpec.JADICE
and additionally adopts the decoder from
Java Advanced Imaging designated by JPEG2000ReaderSettings.DecoderSpec.JAI
. Each decoder can only be configured
once.
By default, only the Jadice's decoder is used. To change the configuration call
setDecoderSpecs(DecoderSpec...)
. If multiple JPEG2000ReaderSettings.DecoderSpec
s are selected, this
can't be combined with a ImageRenderSettings.getSourceSizeLimitCheck()
. This is because to
test the different specs the image needs to be loaded --> after the loading of an image the check is not
needed anymore.
FIXME The whole settings should be RenderSettings
, not ReaderSettings
Modifier and Type | Class and Description |
---|---|
static class |
JPEG2000ReaderSettings.DecoderSpec |
Constructor and Description |
---|
JPEG2000ReaderSettings() |
Modifier and Type | Method and Description |
---|---|
SerializableProcessingSettings |
createSnapshot()
Create a snapshot copy of this instance.
|
boolean |
equals(Object o) |
Set<JPEG2000ReaderSettings.DecoderSpec> |
getDecoderSpecs() |
int |
hashCode() |
void |
setDecoderSpecs(JPEG2000ReaderSettings.DecoderSpec... decoderSpecs) |
public void setDecoderSpecs(JPEG2000ReaderSettings.DecoderSpec... decoderSpecs)
public Set<JPEG2000ReaderSettings.DecoderSpec> getDecoderSpecs()
public SerializableProcessingSettings createSnapshot()
SerializableProcessingSettings
createSnapshot
in interface ProcessingSettings
createSnapshot
in interface SerializableProcessingSettings
Copyright © 2024 levigo holding gmbh. All rights reserved.