com.ephox.editlive.http.manager.image
Interface HttpImageManager


public interface HttpImageManager

Image Download manager. Instance available via HttpManagerFactory.

Since:
7.5

Method Summary
 Image getImage(URL url)
          Downloads an image.
 void getImageAsync(URL url, ImageCallback callback)
          Downloads an image asynchronously.
 

Method Detail

getImage

Image getImage(URL url)
Downloads an image.

Parameters:
url - the URL to download from.
Returns:
the Image or null if the image could not be downloaded.

getImageAsync

void getImageAsync(URL url,
                   ImageCallback callback)
Downloads an image asynchronously. The image is passed to callback via SwingUtilties.invokeLater(), if it is cached this happens immediately.

Parameters:
url - the URL to download from.
callback - the callback to notify when the image has finished downloading.

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.