2003/04/10 01:41:43
[org.ibex.core.git] / src / org / xwt / Platform.java
index 1b6056a..80076d3 100644 (file)
@@ -241,6 +241,10 @@ public class Platform {
         return null;
     }
 
+    /** convert a JPEG into an Image */
+    protected ImageDecoder _decodeJPEG(InputStream is, String name) { return null; }
+
+
     // Static methods -- thunk to the instance /////////////////////////////////////////////////////////////////////////
 
     /** if true, org.xwt.Surface should generate Click messages automatically when a Release happens after a Press and the mouse has not moved much */
@@ -401,6 +405,10 @@ public class Platform {
         return cachedProxyInfo;
     }
 
+    public static synchronized ImageDecoder decodeJPEG(InputStream is, String name) {
+       return platform._decodeJPEG(is, name);
+    }
+
     // Helpful font parsing stuff //////////////////////////////////////////////////////
 
     public static class ParsedFont {