public class CommonImageIODecoder extends Object implements CompressedStreamParser
decoder to be used by the BinaryDataParser to decode a binary block that is compressed in JPEG and TIFF, PNG, ...
Modifier and Type | Field and Description |
---|---|
protected byte[] |
block |
protected byte[] |
byteArray |
protected ByteArrayInputStream |
byteArrayInputStream |
protected ByteArrayInputStream |
byteArrayStream |
protected boolean |
checkedForSize |
protected Color |
color |
protected jj2000.j2k.decoder.Decoder |
dec |
protected boolean |
fileBased |
protected BufferedImage |
image |
protected DataBlock |
imageBlock |
protected ImageReader |
imageReader |
protected MemoryCacheImageInputStream |
imageStream |
protected String |
imageUrl |
protected jj2000.j2k.util.ParameterList |
list |
protected InputStream |
stream |
Constructor and Description |
---|
CommonImageIODecoder() |
Modifier and Type | Method and Description |
---|---|
void |
decode(DataInputExt inputStream,
DataComponent blockComponent)
Reads compressed data from input stream and assigns result to the component data block
|
void |
init(DataComponent blockComponent,
BinaryBlock binaryBlock)
Initializes decoder with block data component and its binary encoding info
|
protected String imageUrl
protected BufferedImage image
protected DataBlock imageBlock
protected jj2000.j2k.util.ParameterList list
protected jj2000.j2k.decoder.Decoder dec
protected boolean fileBased
protected ByteArrayInputStream byteArrayInputStream
protected byte[] byteArray
protected boolean checkedForSize
protected byte[] block
protected ByteArrayInputStream byteArrayStream
protected InputStream stream
protected MemoryCacheImageInputStream imageStream
protected Color color
protected ImageReader imageReader
public void init(DataComponent blockComponent, BinaryBlock binaryBlock) throws CDMException
CompressedStreamParser
init
in interface CompressedStreamParser
CDMException
public void decode(DataInputExt inputStream, DataComponent blockComponent) throws CDMException
CompressedStreamParser
decode
in interface CompressedStreamParser
CDMException
Copyright © 2016 Sensia Software LLC. All rights reserved.