资源简介
代码片段和文件信息
package clad;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* BrowserLauncher is a class that provides one static method openURL which opens the default web browser for the
* current user of the system to the given URL. It may support other protocols depending on the system -- mailto ftp
* etc. -- but that has not been rigorously tested and is not guaranteed to work.
*
* Yes this is platform-specific code and yes it may rely on classes on certain platforms that are not part of the
* standard JDK. What we‘re trying to do though is to take something that‘s frequently desirable but inherently
* platform-specific -- opening a default browser -- and allow programmers (you for example) to do so without worrying
* about dropping into native code or doing anything else similarly evil.
*
* Anyway this code is completely in Java and will run on all JDK 1.1-compliant systems without modification or a need
* for additional libraries. All classes that are required on certain platforms to allow this to run are dynamically
* loaded at runtime via reflection and if not found will not cause this to do anything other than returning an error
* when opening the browser.
*
* There are certain system requirements for this class as it‘s running through Runtime.exec() which is Java‘s way of
* making a native system call. Currently this requires that a Macintosh have a Finder which supports the GURL event
* which is true for Mac OS 8.0 and 8.1 systems that have the Internet scripting Applescript dictionary installed in
* the scripting Additions folder in the Extensions folder (which is installed by default as far as I know under Mac OS
* 8.0 and 8.1) and for all Mac OS 8.5 and later systems. On Windows it only runs under Win32 systems (Windows 95
* 98 and NT 4.0 as well as later versions of all). On other systems this drops back from the inherently
* platform-sensitive concept of a default browser and simply attempts to launch Netscape via a shell command.
*
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu) and may be redistributed or modified in
* any form without restrictions as long as the portion of this comment from this paragraph through the end of the
* comment is not removed. The author requests that he be notified of any application applet or other binary that
* makes use of this code but that‘s more out of curiosity than anything and is not required. This software includes
* no warranty. The author is not repsonsible for any loss of data or functionality or any adverse or unexpected
* effects of using this software.
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2007-03-26 08:43 TCS1.21\
文件 6148 2007-03-26 08:44 TCS1.21\.DS_Store
目录 0 2007-03-26 08:45 __MACOSX\
目录 0 2007-03-26 08:45 __MACOSX\TCS1.21\
文件 82 2007-03-26 08:44 __MACOSX\TCS1.21\._.DS_Store
目录 0 2007-03-26 08:43 TCS1.21\docs\
文件 6148 2005-07-01 08:22 TCS1.21\docs\.DS_Store
目录 0 2007-03-26 08:45 __MACOSX\TCS1.21\docs\
文件 82 2005-07-01 08:22 __MACOSX\TCS1.21\docs\._.DS_Store
文件 79748 2005-07-01 09:06 TCS1.21\docs\TCS1.21.html
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\._TCS1.21.html
文件 289901 2005-07-01 09:06 TCS1.21\docs\TCS1.21.pdf
目录 0 2007-03-26 08:43 TCS1.21\docs\TCS1.21_files\
文件 345 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\filelist.xm
目录 0 2007-03-26 08:45 __MACOSX\TCS1.21\docs\TCS1.21_files\
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._filelist.xm
文件 2954 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\header.htm
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._header.htm
文件 319 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\image001.png
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._image001.png
文件 1463 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\image002.gif
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._image002.gif
文件 115090 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\image003.png
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._image003.png
文件 28665 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\image004.gif
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._image004.gif
文件 43012 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\image005.png
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._image005.png
文件 8447 2005-07-01 09:06 TCS1.21\docs\TCS1.21_files\image006.jpg
文件 82 2005-07-01 09:06 __MACOSX\TCS1.21\docs\TCS1.21_files\._image006.jpg
目录 0 2007-03-26 08:43 TCS1.21\examples\
............此处省略127个文件信息
- 上一篇:DataDig5.0.0
- 下一篇:make.exe
评论
共有 条评论