// Path: src/com/ikantech/support/listener/YiImageLoaderListener.java
// public interface YiImageLoaderListener
// {
// 	void onImageLoaded(String url, Bitmap bitmap);
// }


import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Message;
import com.ikantech.support.cache.YiStoreCache;
import com.ikantech.support.listener.YiImageLoaderListener;
package com.ikantech.support.util;




public class YiAsyncImageLoader
{
	private final static int HTTP_STATE_OK = 200;
	private final static int BUFFER_SIZE = 1024 * 4;
	private final static int DEFAULT_TIMEOUT = 30 * 1000;

	private static YiStoreCache mImageCache = new YiStoreCache(16);

	private YiAsyncImageLoader()
	{
	}

	public static Bitmap loadBitmapFromeStoreSync(String key)
	{
		return mImageCache.get(key);
	}

	public static void removeMemoryCache(String key)
	{
		mImageCache.removeMemoryCache(key);
	}

	public static void loadBitmapFromStore(final String key,
// Path: src/com/ikantech/support/listener/YiImageLoaderListener.java
// public interface YiImageLoaderListener
// {
// 	void onImageLoaded(String url, Bitmap bitmap);
// }


// Path: src/com/ikantech/support/util/YiAsyncImageLoader.java
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Message;
import com.ikantech.support.cache.YiStoreCache;
import com.ikantech.support.listener.YiImageLoaderListener;

package com.ikantech.support.util;




public class YiAsyncImageLoader
{
	private final static int HTTP_STATE_OK = 200;
	private final static int BUFFER_SIZE = 1024 * 4;
	private final static int DEFAULT_TIMEOUT = 30 * 1000;

	private static YiStoreCache mImageCache = new YiStoreCache(16);

	private YiAsyncImageLoader()
	{
	}

	public static Bitmap loadBitmapFromeStoreSync(String key)
	{
		return mImageCache.get(key);
	}

	public static void removeMemoryCache(String key)
	{
		mImageCache.removeMemoryCache(key);
	}

	public static void loadBitmapFromStore(final String key,
			final YiImageLoaderListener listener)