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

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

?? filebrowser.java.svn-base

?? 類似QQ的功能
?? SVN-BASE
字號:
/******************************************************************************* Jimm - Mobile Messaging - J2ME ICQ clone Copyright (C) 2003-07  Jimm Project This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. ******************************************************************************** File: src/jimm/FileBrowser.java Version: ###VERSION###  Date: ###DATE### Author(s): Andreas Rossbacher, Andrey Kazakov, Artyomov Denis,  *******************************************************************************///#sijapp cond.if (target!="DEFAULT")&(modules_FILES="true"|modules_HISTORY="true")#package jimm;//#sijapp cond.if target="MIDP2"|target="MOTOROLA"|target="RIM"#import javax.microedition.io.file.*;//#sijapp cond.elseif target="SIEMENS2"#//#import com.siemens.mp.io.file.FileConnection;//#import com.siemens.mp.io.file.FileSystemRegistry;//#sijapp cond.end#import javax.microedition.io.Connector;import javax.microedition.lcdui.CommandListener;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.Font;import java.util.Enumeration;import java.util.Vector;import java.io.*;import DrawControls.*;//#sijapp cond.if target="MOTOROLA"#interface MotoFileSystem{	public void open(String fileName, int mode) throws IOException;	public void enumRoots(Vector result) throws IOException;	public void enumFiles(Vector result, String fileName) throws IOException;	public void closeFileConn() throws IOException;	public OutputStream openOutputStream() throws IOException;	public InputStream openInputStream() throws IOException;	public long fileSize() throws IOException;}class MotoFileSystemHelper implements MotoFileSystem{	private com.motorola.io.FileConnection fileConn;		public void open(String fileName, int mode) throws IOException	{		fileConn = (com.motorola.io.FileConnection)Connector.open("file://" + fileName);	}		public void enumRoots(Vector result) throws IOException	{		String[] roots = com.motorola.io.FileSystemRegistry.listRoots();		for (int i = 0; i < roots.length; i++) result.addElement(roots[i]);	}		public void enumFiles(Vector result, String fileName) throws IOException	{		try		{			com.motorola.io.FileConnection fileconn = (com.motorola.io.FileConnection)Connector.open("file://" + fileName);			String[] list = fileconn.list();			fileconn.close();			result.addElement(FileSystem2.PARENT_DIRECTORY);			for (int i = 0; i < list.length; i++) result.addElement(list[i]);		}		catch (Exception e) {}	}		public void closeFileConn() throws IOException	{		if (fileConn == null) return;		fileConn.close();		fileConn = null;	}		public OutputStream openOutputStream() throws IOException	{		if ( !fileConn.exists() ) fileConn.create();		return fileConn.openOutputStream();	}		public InputStream openInputStream() throws IOException	{		return fileConn.openInputStream();	}		public long fileSize() throws IOException	{		return (fileConn == null) ? -1 : fileConn.fileSize();	}	}class StdFileSystemHelper implements MotoFileSystem{	private FileConnection fileConn;		public void open(String fileName, int mode) throws IOException	{		fileConn = (FileConnection)Connector.open("file://" + fileName, mode);	}		public void enumRoots(Vector result)	{		Enumeration roots = FileSystemRegistry.listRoots();		while (roots.hasMoreElements()) result.addElement(roots.nextElement());	}		public void enumFiles(Vector result, String fileName) throws IOException	{		FileConnection fileconn = (FileConnection) Connector.open("file://" + fileName, Connector.READ);		Enumeration list = fileconn.list("*", true);		fileconn.close();				result.addElement(FileSystem2.PARENT_DIRECTORY);		String filename;		while (list.hasMoreElements())		{			filename = (String) list.nextElement();			result.addElement(filename);		}		filename = null;	}		public void closeFileConn() throws IOException	{		if (fileConn == null) return;		fileConn.close();		fileConn = null;	}		public OutputStream openOutputStream() throws IOException	{		if ( !fileConn.exists() ) fileConn.create();		return fileConn.openOutputStream();	}		public InputStream openInputStream() throws IOException	{		return fileConn.openInputStream();	}		public long fileSize() throws IOException	{		return (fileConn == null) ? -1 : fileConn.fileSize();	}	}//#sijapp cond.end#class FileSystem2 implements CommandListener, Runnable{	private CommandListener externalListener;	private TextList list;	final static String ROOT_DIRECTORY = "/";	final static String PARENT_DIRECTORY = "../";	private ImageList imageList;	private final static int MODE_SCAN_DIRECTORY = 1;	private final static int MODE_SHOW_RESULTS   = 2;	private int currentMode;	private String currentDir;	private String selectedItem;	private Vector items;	private boolean onlyDirs;		//#sijapp cond.if target="MOTOROLA"#	MotoFileSystem motoFileConnection;	//#sijapp cond.else#	private FileConnection fileConnection;	//#sijapp cond.end#		public FileSystem2()	{		//#sijapp cond.if target="MOTOROLA"#		try		{			Class.forName("javax.microedition.io.file.FileConnection");			motoFileConnection = new StdFileSystemHelper();		}		catch (ClassNotFoundException cnfe)		{			motoFileConnection = new MotoFileSystemHelper();		}		//#sijapp cond.end#				imageList = new ImageList();		try		{//#sijapp cond.if target="MIDP2" | target="SIEMENS2"#			imageList.setScale(Options.getInt(Options.OPTION_IMG_SCALE));//#sijapp cond.end#			imageList.load("/fs.png", -1, -1, -1, Jimm.getPhoneVendor() == Jimm.PHONE_NOKIA);		} catch (java.io.IOException e) {}						items = new Vector();		list = new TextList(null);	}		public void browse(String root, CommandListener externalListener, boolean onlyDirs)	{		this.externalListener = externalListener;		this.onlyDirs = onlyDirs;				if (root == null) root = ROOT_DIRECTORY;				list.removeAllCommands();				list.addCommandEx(JimmUI.cmdBack, VirtualList.MENU_TYPE_LEFT_BAR);				if (onlyDirs)		{//#sijapp cond.if target!="RIM" & target!="DEFAULT"#			list.addCommandEx(JimmUI.cmdMenu, VirtualList.MENU_TYPE_RIGHT_BAR);//#sijapp cond.end#			list.addCommandEx(JimmUI.cmdSelect2, VirtualList.MENU_TYPE_RIGHT);			list.addCommandEx(JimmUI.cmdOk, VirtualList.MENU_TYPE_RIGHT);		}		else			list.addCommandEx(JimmUI.cmdSelect, VirtualList.MENU_TYPE_RIGHT_BAR);				JimmUI.setColorScheme(list, false, -1, true);		list.setMode(VirtualList.CURSOR_MODE_DISABLED);		list.activate(Jimm.display);		list.setCommandListener(this);		showFolder(root);	}		private void showFolder(String path)	{		if (currentMode == MODE_SCAN_DIRECTORY) return;		currentMode = MODE_SCAN_DIRECTORY;		currentDir = path;		new Thread(this).start();	}		//#sijapp cond.if target="MOTOROLA"#	private void enumRootsMoto(Vector result) throws IOException	{		motoFileConnection.enumRoots(result);	}		private void enumFilesMoto(Vector result, String fileName) throws IOException	{		motoFileConnection.enumFiles(result, fileName);	}		//#sijapp cond.else#		private void enumRootsStd(Vector result)	{		Enumeration roots = FileSystemRegistry.listRoots();		while (roots.hasMoreElements()) result.addElement(roots.nextElement());	}		private void enumFilesStd(Vector result, String fileName) throws IOException	{		FileConnection fileconn;		//#sijapp cond.if target="SIEMENS2"#		fileconn = (FileConnection) Connector.open("file://" + fileName);		//#sijapp cond.else#		fileconn = (FileConnection) Connector.open("file://localhost"+fileName, Connector.READ);		//#sijapp cond.end#		Enumeration list = fileconn.list("*", true);		fileconn.close();				result.addElement(PARENT_DIRECTORY);		String filename;		while (list.hasMoreElements())		{			filename = (String) list.nextElement();			result.addElement(filename);		}		filename = null;	}		//#sijapp cond.end#		public void run() 	{		switch (currentMode)		{		case MODE_SCAN_DIRECTORY:			try			{				items.removeAllElements();				if (currentDir.equals(ROOT_DIRECTORY))				{					//#sijapp cond.if target="MOTOROLA"#					enumRootsMoto(items);					//#sijapp cond.else#					enumRootsStd(items);					//#sijapp cond.end#				}				else				{					//#sijapp cond.if target="MOTOROLA"#					enumFilesMoto(items, currentDir);					//#sijapp cond.else#					enumFilesStd(items, currentDir);					//#sijapp cond.end#				}			} 			catch (Exception e)			{				e.printStackTrace();			}						currentMode = MODE_SHOW_RESULTS;			Jimm.display.callSerially(this);			break;					case MODE_SHOW_RESULTS:						// Show last path element at caption 			int index1 = -1, index2 = -1;			boolean isDelim = false;			for (int i = currentDir.length()-1; i >= 0; i--)			{				isDelim = (currentDir.charAt(i) == '/');				if (isDelim)				{					if (index1 == -1) index1 = i;					else if (index2 == -1) index2 = i;					else break;				}			}						list.setCaption			(				(index1 != -1) && (index2 != -1) ? 				currentDir.substring(index2+1, index1) : 				"Root"			);			// Show directory content			list.clear();						// Show dirs			String itemText;			for (int i = 0; i < items.size(); i++)			{				itemText = (String)items.elementAt(i);				if (!itemText.endsWith("/")) continue;				JimmUI.addTextListItem(list, itemText, imageList.elementAt(0), i, true, -1, Font.STYLE_PLAIN);			}						// Show files			if (!onlyDirs) for (int i = 0; i < items.size(); i++)			{				itemText = (String)items.elementAt(i);				if (itemText.endsWith("/")) continue;				JimmUI.addTextListItem(list, itemText, imageList.elementAt(1), i, true, -1, Font.STYLE_PLAIN);			}			break;		}	}		public void commandAction(Command c, Displayable d)	{		Jimm.aaUserActivity();				if (c == JimmUI.cmdSelect2 || c == JimmUI.cmdOk || c == JimmUI.cmdSelect) 		{			int index = list.getCurrTextIndex();			if (index < 0) return;			String itemText = (String)items.elementAt(index);			selectedItem = currentDir+itemText;			if (itemText == PARENT_DIRECTORY)			{				String parentDir = null;				for (int i = currentDir.length()-2; i >= 0; i--) if (currentDir.charAt(i) == '/')				{					parentDir = currentDir.substring(0, i+1);					break;				}				if (parentDir != null) showFolder(parentDir);			}			else if (itemText.endsWith("/"))			{				if (c == JimmUI.cmdOk || c == JimmUI.cmdSelect)					showFolder(selectedItem);				else if (c == JimmUI.cmdSelect2)					externalListener.commandAction(JimmUI.cmdOk, d);			}			else			{				externalListener.commandAction(JimmUI.cmdOk, d);			}						}		else if (c == JimmUI.cmdBack) externalListener.commandAction(JimmUI.cmdBack, d);	}		public boolean isActive()	{		return (list == null) ? false : list.isActive();	}		public String getValue()	{		return selectedItem;	}		public void openFile(String fileName, int mode) throws IOException	{		close();		//#sijapp cond.if target="MOTOROLA"#		motoFileConnection.open(fileName, mode);		//#sijapp cond.else#		fileConnection = (FileConnection) Connector.open("file://" + fileName, mode);		//#sijapp cond.end#	}		public InputStream openInputStream() throws IOException	{		InputStream result;		//#sijapp cond.if target="MOTOROLA"#		result = motoFileConnection.openInputStream();		//#sijapp cond.else#		result = fileConnection.openInputStream();		//#sijapp cond.end#		return result;	}		public OutputStream openOutputStream() throws IOException	{		OutputStream result;		//#sijapp cond.if target="MOTOROLA"#		result = motoFileConnection.openOutputStream();		//#sijapp cond.else#		if ( !fileConnection.exists() ) fileConnection.create();		result = fileConnection.openOutputStream();		//#sijapp cond.end#		return result;	}		public void close() throws IOException	{		//#sijapp cond.if target="MOTOROLA"#		motoFileConnection.closeFileConn();		//#sijapp cond.else#		if (fileConnection != null)		{			fileConnection.close();			fileConnection = null;		}		//#sijapp cond.end#	}		public long fileSize() throws IOException	{		long result = 0;		//#sijapp cond.if target="MOTOROLA"#		result = motoFileConnection.fileSize();		//#sijapp cond.else#		result = (fileConnection == null) ? -1 : fileConnection.fileSize();		//#sijapp cond.end#		return result;	}}//#sijapp cond.end#

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区欧美久久| 国产精品三级在线观看| 高清shemale亚洲人妖| 亚洲综合男人的天堂| 久久久五月婷婷| 欧美日韩一区在线| 99久久免费国产| 成人在线一区二区三区| 日韩av高清在线观看| 亚洲超丰满肉感bbw| 亚洲欧美色图小说| 久久精品一区八戒影视| 日韩一区二区三区电影在线观看 | 欧美国产精品一区二区| 精品国产91乱码一区二区三区| 在线日韩一区二区| 91蝌蚪porny| 99国产精品视频免费观看| 极品少妇xxxx精品少妇| 久久99精品网久久| 精品亚洲成av人在线观看| 久草中文综合在线| 国产综合久久久久影院| 激情亚洲综合在线| 粉嫩久久99精品久久久久久夜| 毛片基地黄久久久久久天堂| 久久99精品网久久| 国产suv一区二区三区88区| 色综合天天综合网天天看片| 亚洲成人777| 国产亚洲美州欧州综合国| 91色porny蝌蚪| 国产成人免费av在线| 国产v综合v亚洲欧| 91福利视频网站| 91精品国产综合久久久蜜臀图片| 日韩免费观看2025年上映的电影| 久久只精品国产| 日韩欧美中文一区| 久久精品一区二区三区不卡| 亚洲精品日韩综合观看成人91| 日日摸夜夜添夜夜添国产精品| 国产一区在线看| 色美美综合视频| 日韩午夜在线影院| 国产精品久久久久7777按摩| 亚洲丰满少妇videoshd| 国产精品99久久久久久宅男| 欧洲av一区二区嗯嗯嗯啊| 精品国免费一区二区三区| 亚洲色图另类专区| 美女视频一区在线观看| 99精品视频在线观看| 3d成人h动漫网站入口| 久久精品亚洲麻豆av一区二区| 亚洲激情在线激情| 国产在线视视频有精品| 在线一区二区视频| 精品国产麻豆免费人成网站| 亚洲精品欧美综合四区| 国产精品99久| 7777精品伊人久久久大香线蕉超级流畅 | 蜜桃一区二区三区四区| 99国产精品国产精品毛片| 91精品蜜臀在线一区尤物| 综合久久久久久久| 国产一区二区伦理| 欧美精选在线播放| 中文字幕字幕中文在线中不卡视频| 蜜桃av一区二区三区电影| 91麻豆6部合集magnet| 国产色婷婷亚洲99精品小说| 奇米影视一区二区三区小说| 91丨porny丨首页| 欧美国产日韩精品免费观看| 久久99精品久久久久久国产越南| 色综合久久天天| 欧美激情一区二区| 国产一区在线精品| 日韩欧美在线不卡| 亚洲va韩国va欧美va精品| 色悠悠亚洲一区二区| 中文幕一区二区三区久久蜜桃| 另类欧美日韩国产在线| 欧美精品日韩精品| 一级女性全黄久久生活片免费| 成人久久久精品乱码一区二区三区| 欧美mv日韩mv| 美女视频黄 久久| 91精品国产综合久久久蜜臀粉嫩 | 亚洲一级二级在线| 99久久99久久精品免费看蜜桃| 欧美国产一区视频在线观看| 捆绑变态av一区二区三区| 日韩亚洲欧美在线观看| 青草国产精品久久久久久| 91精品国产色综合久久ai换脸 | 中文字幕一区在线| 高清日韩电视剧大全免费| 久久综合狠狠综合久久激情| 国内精品伊人久久久久av影院 | 欧美一级日韩不卡播放免费| 亚洲成人av电影在线| 欧美日韩高清在线| 亚洲二区视频在线| 欧美高清hd18日本| 天天影视色香欲综合网老头| 欧美日韩国产在线播放网站| 视频一区二区中文字幕| 欧美一级片在线看| 久久国内精品视频| 2024国产精品视频| 成人免费福利片| 国产精品成人一区二区三区夜夜夜| 99久久精品免费看| 亚洲午夜久久久久久久久久久| 欧美三级日本三级少妇99| 天天av天天翘天天综合网色鬼国产 | 欧美午夜一区二区三区免费大片| 亚洲欧美二区三区| 欧美日本韩国一区| 狠狠色丁香婷综合久久| 久久精品人人爽人人爽| av激情成人网| 亚洲成av人片在线观看| 日韩精品一区二区三区四区视频 | 国产精品99久久久久久久vr| 国产精品女同互慰在线看| 91女神在线视频| 亚洲成人福利片| 精品久久久影院| 成人黄动漫网站免费app| 亚洲久草在线视频| 日韩视频免费观看高清在线视频| 国产九九视频一区二区三区| 1000精品久久久久久久久| 欧美日韩一级二级三级| 久久不见久久见中文字幕免费| 国产欧美在线观看一区| 色欧美乱欧美15图片| 麻豆传媒一区二区三区| 国产欧美日韩综合精品一区二区| 日本乱码高清不卡字幕| 蜜臀av性久久久久蜜臀aⅴ | 欧美女孩性生活视频| 日韩av中文在线观看| 久久久亚洲午夜电影| 91在线你懂得| 日韩电影免费在线| 一区二区三区在线视频播放 | 国产成人自拍高清视频在线免费播放| 日韩高清在线观看| 日本网站在线观看一区二区三区 | 欧美激情在线一区二区| 久久蜜桃香蕉精品一区二区三区| 欧美成人激情免费网| 欧美xfplay| 久久久久9999亚洲精品| 国产女主播视频一区二区| www国产精品av| 国产精品天干天干在观线| 亚洲国产精品黑人久久久| 亚洲天天做日日做天天谢日日欢| 中文字幕在线观看一区| 亚洲伦理在线精品| 亚洲一卡二卡三卡四卡无卡久久| 亚洲成人7777| 黄一区二区三区| 波多野洁衣一区| 在线观看日韩电影| 8v天堂国产在线一区二区| 日韩精品中午字幕| 亚洲国产精品高清| 亚洲国产精品久久一线不卡| 日韩精品每日更新| 国产.欧美.日韩| 在线一区二区三区| 日韩欧美一卡二卡| 欧美高清在线一区二区| 亚洲观看高清完整版在线观看| 裸体一区二区三区| 91女厕偷拍女厕偷拍高清| 欧美三级中文字幕在线观看| 91精品国产91久久久久久最新毛片| 欧美电影免费观看完整版 | 色综合久久中文字幕| 欧美一区二区三区在线电影| 久久久久国产精品厨房| 亚洲综合丁香婷婷六月香| 久久国产精品99久久人人澡| 99久久精品国产毛片| 欧美精品视频www在线观看| 欧美国产欧美综合| 秋霞电影一区二区| 91精品1区2区| 国产欧美一区二区精品秋霞影院| 五月天婷婷综合| 色94色欧美sute亚洲线路二 | 91免费国产在线| 欧美一级午夜免费电影|