FileDocCategorySizeDatePackage
ByteArrayDecodingImageSource.javaAPI DocAndroid 1.5 API1958Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.gl.image

ByteArrayDecodingImageSource

public class ByteArrayDecodingImageSource extends DecodingImageSource
author
Igor V. Stolyarov
version
$Revision$

Fields Summary
byte[]
imagedata
int
imageoffset
int
imagelength
Constructors Summary
public ByteArrayDecodingImageSource(byte[] imagedata, int imageoffset, int imagelength)

        this.imagedata = imagedata;
        this.imageoffset = imageoffset;
        this.imagelength = imagelength;
    
public ByteArrayDecodingImageSource(byte[] imagedata)

        this(imagedata, 0, imagedata.length);
    
Methods Summary
protected booleancheckConnection()

        return true;
    
protected java.io.InputStreamgetInputStream()

        // BEGIN android-modified
        // TODO: Why does a ByteArrayInputStream need to be buffered at all?
        return new BufferedInputStream(new ByteArrayInputStream(imagedata,
                        imageoffset, imagelength), 1024);
        // END android-modified