ByteArrayDecodingImageSourcepublic class ByteArrayDecodingImageSource extends DecodingImageSource
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 boolean | checkConnection()
return true;
| protected java.io.InputStream | getInputStream()
// 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
|
|