Need to reference ImageIO in the constructor to ensure that the

classloading is attempting at construct time. So we do so by disabling
disk caching which will hopefully allow ImageIO stuff to work in the
applet.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@764 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-13 05:14:53 +00:00
parent 1ebc240198
commit 279b3b07c0
@@ -1,5 +1,5 @@
//
// $Id: ImageIOLoader.java,v 1.2 2001/12/13 01:14:30 shaper Exp $
// $Id: ImageIOLoader.java,v 1.3 2001/12/13 05:14:53 mdb Exp $
package com.threerings.media;
@@ -15,6 +15,13 @@ import javax.imageio.ImageIO;
*/
public class ImageIOLoader implements ImageLoader
{
public ImageIOLoader ()
{
// we need to reference ImageIO in the constructor to force the
// classloader to attempt to load the ImageIO classes
ImageIO.setUseCache(false);
}
// documentation inherited
public Image loadImage (InputStream source)
throws IOException