abstract class GameScreen extends Canvas implements Runnable {
private static final boolean showInfo = false;
public abstract void Dispose();
public abstract void run();
public abstract int getReturnValue();
public byte[] ReadByteArray(String file, int bytes, int offsetInFile) {
byte[] data = null;
new StringBuffer();
try {
InputStream is = Connector.openInputStream("resource:/".concat(String.valueOf(String.valueOf(file))));
data = new byte[bytes];
is.read(data);
is.close();
} catch (Exception e) {
System.out.println(String.valueOf(String.valueOf((new StringBuffer("Exception: please copy the sprite-files from \\res to your class-files directory (CLASSPATH)!\n")).append(file).append("\n").append(e))));