package com.squareup.picasso;

import android.graphics.Bitmap;
import android.net.Uri;
import java.io.IOException;
import java.io.InputStream;

public abstract interface Downloader
{
  public abstract Response load(Uri paramUri, int paramInt)
    throws IOException;

  public abstract void shutdown();

  public static class Response
  {
    final Bitmap bitmap;
    final boolean cached;
    final long contentLength;
    final InputStream stream;

    @Deprecated
    public Response(Bitmap paramBitmap, boolean paramBoolean)
    {
      if (paramBitmap == null)
        throw new IllegalArgumentException("Bitmap may not be null.");
      this.stream = null;
      this.bitmap = paramBitmap;
      this.cached = paramBoolean;
      this.contentLength = -1L;
    }

    @Deprecated
    public Response(Bitmap paramBitmap, boolean paramBoolean, long paramLong)
    {
      this(paramBitmap, paramBoolean);
    }

    @Deprecated
    public Response(InputStream paramInputStream, boolean paramBoolean)
    {
      this(paramInputStream, paramBoolean, -1L);
    }

    public Response(InputStream paramInputStream, boolean paramBoolean, long paramLong)
    {
      if (paramInputStream == null)
        throw new IllegalArgumentException("Stream may not be null.");
      this.stream = paramInputStream;
      this.bitmap = null;
      this.cached = paramBoolean;
      this.contentLength = paramLong;
    }

    @Deprecated
    public Bitmap getBitmap()
    {
      return this.bitmap;
    }

    public long getContentLength()
    {
      return this.contentLength;
    }

    public InputStream getInputStream()
    {
      return this.stream;
    }
  }

  public static class ResponseException extends IOException
  {
    final boolean localCacheOnly;
    final int responseCode;

    public ResponseException(String paramString, int paramInt1, int paramInt2)
    {
      super();
      this.localCacheOnly = NetworkPolicy.isOfflineOnly(paramInt1);
      this.responseCode = paramInt2;
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.squareup.picasso.Downloader
 * JD-Core Version:    0.6.2
 */