// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
package org.ibex.plat;
-import org.ibex.*;
import org.ibex.util.*;
import java.io.*;
import java.security.*;
import java.security.cert.*;
+import org.ibex.graphics.*;
+import org.ibex.core.*;
+import org.ibex.net.*;
/** common superclass for all platforms that use GCJ to compile a native binary */
public abstract class GCJ extends Platform {
- // static references to these classes ensure that the linker will include them
- public static Object c1 = new gnu.java.locale.Calendar();
- // public static Object[][] c1c = new gnu.java.locale.Calendar().getContents();
- public static Object c2 = new java.util.GregorianCalendar();
- public static Object c3n = new gnu.gcj.convert.Input_ASCII();
- public static Object c4 = new gnu.gcj.convert.Input_UTF8();
- public static Object c5 = new gnu.gcj.convert.Input_8859_1();
- public static Object c6 = new gnu.java.locale.LocaleInformation();
- public static Object c7 = new gnu.gcj.convert.Output_ASCII();
- //public static Object c8 = new gnu.java.locale.Calendar_en();
- //public static Object c9 = new gnu.java.locale.Calendar_en_US();
- public static Object c10 = new gnu.gcj.protocol.http.Handler();
- public static Object c11 = new gnu.gcj.protocol.jar.Handler();
- public static Object c12 = new java.security.cert.Certificate("foo") {
- public byte[] getEncoded() throws CertificateEncodingException { return null; }
- public void verify(PublicKey key) { }
- public void verify(PublicKey key, String sigProvider) { }
- public String toString() { return "foocert"; }
- public PublicKey getPublicKey() { return null; }
- };
-
-
protected native InputStream _getBuiltinInputStream();
protected native void _decodeJPEG(InputStream is, Picture p);