Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.webimageloader.transformation;
 
 
 
Adapter class to use if you don't need the java.io.InputStream provided by the base Transformation class.

Author(s):
Alexander Blom <alexanderblom.se>
public abstract class SimpleTransformation implements Transformation {
    

Returns:
null, meaning use default format
    @Override
    public CompressFormat getCompressFormat() {
        return null;
    }

    
    @Override
    public Bitmap transform(InputSupplier inputthrows IOException {
        InputStream is = input.getInput();
        try {
            Bitmap b = BitmapUtils.decodeStream(is);
            return transform(b);
        } finally {
            is.close();
        }
    }
New to GrepCode? Check out our FAQ X