亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? application.java

?? kaffe是一個(gè)java虛擬機(jī)的源代碼。里面包含了一些java例程和標(biāo)準(zhǔn)的java包。
?? JAVA
字號:
/* * Application - *  Kaffe extended library component. *  In order to run several applications on a single VM we assign each *  one an application.  This is essentially a class loader. * * Copyright (c) 1997, 1998 *      Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. */package kaffe.lang;import java.lang.reflect.Method;import java.lang.reflect.InvocationTargetException;import java.util.Vector;import java.util.Enumeration;import java.io.InputStream;import java.io.FilterInputStream;import java.io.PrintStream;import java.net.URL;public class Application extends ClassLoader implements Runnable {private Method runMethod;private String[] arguments;private Vector resources;private ResourceReader reader;private ApplicationResource initResource;private Thread tid;private Throwable exception;private int exitcode;private static boolean sysio;/** * create and start an application * with classpath "" (system classes only) */public Application(String cname, String[] args) throws ApplicationException {	this(cname, args, null, "");}/** * create and start an application with a given classpath */public Application(String cname, String[] args, String classpath) throws ApplicationException {	this(cname, args, null, classpath);}/** * create and start an application and attache a given application resource * classpath is "" (system classes only) */public Application(String cname, String[] args, ApplicationResource res) throws ApplicationException {	this(cname, args, res, "");}/** * create an application with a given classpath and initial resource */public Application(String cname, String[] args, ApplicationResource res, String classpath) throws ApplicationException {	this(cname, args, res, new ClassPathReader(true /* do cache */, classpath));}/** * 1. create an application * 2. if res != null, add it as a resource * 3. start the application in separate thread * * NB: we must add the resource first or else the application may run * to completion before we had a chance to do so. * * You can provide an resource reader application if you like. * * @param cname	Name of main class * @param args  argv[] argument passed to main() * @param res   An application resource to be attached before the app *		is started. * @param reader A resource reader from which to read this apps resources. */public Application(String cname, String[] args, ApplicationResource res, ResourceReader reader) throws ApplicationException {	this.reader = reader;	try {		/* Find the class we're to execute */		Class clazz = loadClass(cname);		/* Get main(String[])V */		runMethod = clazz.getMethod("main", new Class[]{ args.getClass() });		arguments = args;		tid = new Thread(null, this, cname);		if (res != null) {			this.initResource = res;			add(res);		}		setupSystemIO();		tid.start();	}	catch (NoSuchMethodException e) {		throw new ApplicationException("No main() method in " + cname);	}	catch (ClassNotFoundException e) {		throw new ApplicationException("Application " + cname + " class not found");	}}public void run() {	/* Build the invoke arguments */	try {		runMethod.invoke(null, new Object[]{ arguments });	}	catch (Throwable e) {		if (e instanceof InvocationTargetException) {			e = ((InvocationTargetException)e).getTargetException();		}		if (!(e instanceof ThreadDeath)) {			/* We catch everything and just report it */			e.printStackTrace();			exception = e;			exitcode = 1;		}	}	// if the application didn't add any other resources (threads or 	// frames or whatever), and a final resource was given, free that 	// final resource now.	// This way, it can be used to detect whether the application	// simply returned from its main() function	if (resources != null && resources.size() == 1 		&& resources.elementAt(0) == initResource) {		initResource.freeResource();	}}/*************************************************************************//** * Locate the Application the current thread is running in. */public static Application getApplication() {	Class[] classes = classStack0();	for (int i = 0; i < classes.length; i++) {		ClassLoader loader = classes[i].getClassLoader();		//System.out.println("Class: " + classes[i].toString() + ", loader: " + loader);		if (loader instanceof Application) {			return ((Application)loader);		}	}	return (null);}public void freeAllResources() {	if (resources == null) {		return;	}	Enumeration e = resources.elements();	while (e.hasMoreElements()) {		ApplicationResource r = (ApplicationResource)e.nextElement();//		System.out.println("Freeing resource " + r);		r.freeResource();	}}public static void addResource(ApplicationResource res) {	Application app = getApplication();	if (app != null) {		app.add(res);	}}public static void removeResource(ApplicationResource res) {	Application app = getApplication();	if (app != null) {		app.remove(res);	}}private synchronized void add(ApplicationResource res) {	if (resources == null) {		resources = new Vector();	}//	System.out.println("Adding resource " + res.toString() + " to app " + this);	resources.addElement(res);}public synchronized void remove(ApplicationResource res) {	if (resources != null) {//		System.out.println("Removing resource " + res.toString() + " from app " + this);		resources.removeElement(res);	}}private static synchronized void setupSystemIO() {	if (sysio) {		return;	}	try {		System.setIn(new FilterInputStream(System.in){ public void close() { } });		System.setOut(new PrintStream(System.out){ public void close() { flush(); } });		System.setErr(new PrintStream(System.err){ public void close() { flush(); } });		sysio = true;	}	catch (SecurityException _) {	}}/** * Terminate an application.  Terminate the threads then tidy any pending * resources. */public static boolean exit(int status) {	Application app = getApplication();	if (app == null) {		return (false);		// returning false causes VM to exit	}	app.exitcode = status;	app.freeAllResources();	return (true);}public int waitFor() throws InterruptedException {	tid.join();	return (exitcode);}public Throwable exitException() {	return (exception);}public int exitValue() {	return (exitcode);}/*************************************************************************/public URL getResource(String name) {	// this just creates a "system:..." URL	return (getSystemResource(name));}public InputStream getResourceAsStream(String name) {	InputStream is = (getSystemResourceAsStream(name));	if (is != null) {		return (is);	}	try {		is = reader.getResourceAsStream(name);	} catch (Exception e) {		is = null;	}	return (is);}public Class loadClass(String name, boolean resolve) throws ClassNotFoundException {	Class cls;//	System.out.println("loadClass: " + name);	cls = findLoadedClass(name);	// already loaded	if (cls == null) {		if (name.startsWith("java.") || name.startsWith("kaffe.")) {			try {				// try to load it via primordial classpath				cls = findSystemClass(name);				} catch (ClassNotFoundException e) {			} catch (NoClassDefFoundError e) {			}		}		else {			try {				String newname = name.replace('.', '/') + ".class";				InputStream in = getSystemResourceAsStream(newname);				byte[] data = new byte[in.available()];				in.read(data);				in.close();				cls = defineClass(null, data, 0, data.length);			} catch (Exception e) {			}		}	}	// still not found, try our classpath reader	if (cls == null) {		try {			byte[] data = reader.getByteCode(name);			cls = defineClass(null, data, 0, data.length);		}		catch (Exception _) {			throw new ClassNotFoundException(name);		}	}	if (cls != null && resolve) {		resolveClass(cls);	}	return (cls);}private native void exit0();private static native Class[] classStack0();}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国av一区二区三区四区| 成人黄色大片在线观看| 久久综合999| 色天天综合久久久久综合片| 午夜精品一区二区三区三上悠亚| 久久久久国产免费免费| 91麻豆国产精品久久| 国产精品综合网| 天天爽夜夜爽夜夜爽精品视频| 中文字幕第一区二区| 日韩午夜激情av| 色噜噜狠狠一区二区三区果冻| 国产成人福利片| 久色婷婷小香蕉久久| 亚洲电影中文字幕在线观看| 欧美激情在线看| 精品国产电影一区二区| 欧美日韩国产三级| 色噜噜狠狠成人中文综合| 成人app软件下载大全免费| 精品在线一区二区三区| 日韩av高清在线观看| 亚洲图片欧美视频| 亚洲靠逼com| 综合电影一区二区三区 | 日韩欧美专区在线| 欧美伊人久久大香线蕉综合69| 97精品国产97久久久久久久久久久久| 国产真实乱偷精品视频免| 蜜桃久久久久久| 亚洲国产你懂的| 一区二区三区中文在线观看| 中文字幕在线免费不卡| 国产精品天天看| 国产精品视频一区二区三区不卡| 国产午夜精品在线观看| 久久精品人人做人人爽97| 久久久久国产精品麻豆| 国产婷婷精品av在线| 久久老女人爱爱| 国产调教视频一区| 国产色91在线| 国产精品久久久久精k8| 综合亚洲深深色噜噜狠狠网站| 欧美激情综合五月色丁香小说| 国产精品情趣视频| 亚洲欧洲成人精品av97| 亚洲乱码精品一二三四区日韩在线| 国产片一区二区三区| 国产精品素人视频| 国产精品福利一区| 一卡二卡三卡日韩欧美| 亚洲va欧美va天堂v国产综合| 丝瓜av网站精品一区二区| 免费看日韩精品| 国产老妇另类xxxxx| 成人精品国产福利| 色婷婷久久99综合精品jk白丝| 91官网在线观看| 91.com在线观看| wwwwww.欧美系列| 欧美国产一区在线| 亚洲精品欧美专区| 视频一区欧美日韩| 国产真实乱对白精彩久久| 成人av在线观| 欧美日韩精品欧美日韩精品一| 日韩一级大片在线观看| 国产亚洲欧美日韩日本| 亚洲视频一区在线| 日本va欧美va精品发布| 丰满少妇在线播放bd日韩电影| 91麻豆视频网站| 日韩精品一区二区三区蜜臀| 国产精品少妇自拍| 亚洲chinese男男1069| 极品少妇一区二区| 一本大道综合伊人精品热热 | 欧美成人vr18sexvr| 国产欧美日韩另类一区| 亚洲一区二区三区美女| 麻豆91免费观看| 99视频热这里只有精品免费| 911精品国产一区二区在线| 国产日韩视频一区二区三区| 亚洲一线二线三线久久久| 精品一区二区免费看| 蜜臀91精品一区二区三区| 97成人超碰视| 26uuu亚洲综合色欧美| 欧美最新大片在线看| 欧美刺激午夜性久久久久久久| 欧美激情在线看| 日本一区中文字幕| 91麻豆国产精品久久| 亚洲精品高清视频在线观看| 日韩在线观看一区二区| gogo大胆日本视频一区| 制服丝袜亚洲精品中文字幕| 国产精品久久久久久亚洲伦| 亚洲6080在线| 91网站黄www| 久久一二三国产| 丝袜亚洲另类欧美| 色网站国产精品| 国产日韩av一区二区| 六月丁香婷婷久久| 欧美日韩精品一区二区三区| 中文字幕一区二区三| 国内外成人在线| 7777精品伊人久久久大香线蕉经典版下载| 国产精品色哟哟网站| 国产精品一区二区在线播放 | 欧美一区二区三区日韩视频| 亚洲欧洲av在线| 国产一本一道久久香蕉| 日韩亚洲欧美成人一区| 亚洲福利国产精品| 在线观看亚洲a| 一区二区三区日本| 972aa.com艺术欧美| 欧美国产精品一区二区| 国产剧情av麻豆香蕉精品| 日韩欧美电影一区| 免费高清成人在线| 91精品国产一区二区三区香蕉 | 亚洲精品国产一区二区精华液| 国产福利一区二区| 国产欧美日本一区二区三区| 极品美女销魂一区二区三区免费 | 4hu四虎永久在线影院成人| 一区二区三区欧美久久| 色美美综合视频| 亚洲精品成人精品456| 91首页免费视频| 亚洲免费观看高清| 色一情一乱一乱一91av| 亚洲欧美日韩国产综合在线| 99国产麻豆精品| 亚洲欧美另类图片小说| 色综合久久天天综合网| 伊人色综合久久天天人手人婷| 一本久久精品一区二区| 一区二区欧美国产| 欧美性感一类影片在线播放| 一区二区三区美女| 欧美日韩免费在线视频| 丰满少妇久久久久久久| 亚洲欧美一区二区久久| 在线观看一区日韩| 日本伊人色综合网| 久久亚洲综合色| 不卡av在线免费观看| 亚洲最色的网站| 欧美日韩精品二区第二页| 日本免费在线视频不卡一不卡二| 欧美电影免费观看高清完整版在线 | 3d动漫精品啪啪1区2区免费| 天天综合日日夜夜精品| 精品少妇一区二区三区在线播放| 久久99精品国产麻豆婷婷洗澡| 久久久高清一区二区三区| 成人免费观看视频| 一区二区三区日韩在线观看| 欧美男人的天堂一二区| 看片的网站亚洲| 日韩理论在线观看| 欧美日本一区二区| 极品瑜伽女神91| 亚洲美女精品一区| 日韩午夜在线播放| av在线播放不卡| 日韩中文字幕一区二区三区| 337p日本欧洲亚洲大胆色噜噜| av电影在线观看一区| 亚洲第一精品在线| 欧美精品一区二区三区在线| 99久久国产综合精品色伊| 亚洲观看高清完整版在线观看| 欧美电影精品一区二区| 91色porny在线视频| 美女视频网站黄色亚洲| 亚洲欧美激情插| 欧美sm极限捆绑bd| 91国偷自产一区二区三区成为亚洲经典 | 久久无码av三级| 在线观看视频91| 国产精品资源网站| 亚洲午夜三级在线| 国产欧美一区二区精品秋霞影院| 欧美中文字幕一区二区三区| 国产乱子轮精品视频| 亚洲第一精品在线| 亚洲欧洲精品一区二区三区不卡| 91精品国产综合久久精品app| 成年人国产精品| 精品午夜一区二区三区在线观看| 一区二区在线看| 国产精品国产自产拍在线| 欧美大度的电影原声|