2003/09/20 05:03:47
[org.ibex.core.git] / src / org / xwt / Platform.java
index f081948..30b46e1 100644 (file)
@@ -211,24 +211,7 @@ public class Platform {
 
     /** returns an InputStream to the builtin xwar */
     protected InputStream _getBuiltinInputStream() {
-        try {
-            return new FileInputStream("builtin.xwar");
-        } catch (Exception e) {
-            Log.log(this, e);
-            return null;
-        }
-        //return this.getClass().getClassLoader().getResourceAsStream("org/xwt/builtin.xwar");
-    }
-
-    /** returns an InputStream to the builtin xwar */
-    protected InputStream _getFreetypeInputStream() {
-        try {
-            return new FileInputStream("freetype.mips");
-        } catch (Exception e) {
-            Log.log(this, e);
-            return null;
-        }
-        //return this.getClass().getClassLoader().getResourceAsStream("org/xwt/freetype.mips");
+        return this.getClass().getClassLoader().getResourceAsStream("org/xwt/builtin.jar");
     }
 
     /** returns the value of the environment variable key, or null if no such key exists */
@@ -324,9 +307,6 @@ public class Platform {
     /** returns an InputStream to the builtin xwar */
     public static InputStream getBuiltinInputStream() { return platform._getBuiltinInputStream(); }
         
-    /** returns an InputStream to the freetype mips binary */
-    public static InputStream getFreetypeInputStream() { return platform._getFreetypeInputStream(); }
-        
     /** creates and returns a picture */
     public static Picture createPicture(ImageDecoder i) { return platform._createPicture(i.getData(), i.getWidth(), i.getHeight()); }