Forgot to make ImageIOLoader implement ImageLoader. Output the exception
associated with failure to make use of the ImageIOLoader. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@762 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ImageIOLoader.java,v 1.1 2001/12/07 01:33:29 mdb Exp $
|
// $Id: ImageIOLoader.java,v 1.2 2001/12/13 01:14:30 shaper Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
|
|||||||
* Loads images using the <code>ImageIO</code> services provided by J2SE
|
* Loads images using the <code>ImageIO</code> services provided by J2SE
|
||||||
* 1.4 (and, presumably, above).
|
* 1.4 (and, presumably, above).
|
||||||
*/
|
*/
|
||||||
public class ImageIOLoader
|
public class ImageIOLoader implements ImageLoader
|
||||||
{
|
{
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public Image loadImage (InputStream source)
|
public Image loadImage (InputStream source)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ImageManager.java,v 1.9 2001/12/07 01:33:29 mdb Exp $
|
// $Id: ImageManager.java,v 1.10 2001/12/13 01:14:30 shaper Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ public class ImageManager
|
|||||||
_loader = (ImageLoader)Class.forName(IMAGEIO_LOADER).newInstance();
|
_loader = (ImageLoader)Class.forName(IMAGEIO_LOADER).newInstance();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.info("Unable to use ImageIO to load images. " +
|
Log.info("Unable to use ImageIO to load images. " +
|
||||||
"Falling back to Toolkit.");
|
"Falling back to Toolkit [e=" + e + "].");
|
||||||
_loader = new ToolkitLoader(context);
|
_loader = new ToolkitLoader(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user