搜索资源列表
用Java编写HTML文件分析程序
- 用Java编写HTML文件分析程序 一、概述 Web服务器的核心是对Html文件中的各标记(Tag)作出正确的分析,一种编程语言的解释程序也是对源文件中的保留字进行分析再做解释的。实际应用中,我们也经常会碰到需要对某一特定类型文件进行要害字分析的情况,比如,需要将某个HTML文件下载并同时下载与之相关的.gif、.class等文件,此时就要求对HTML文件中的标记进行分离,找出所需的文件名及目录。在Java出现以前,类似工作需要对文件中的每个字符进行分析,从中找出所需部
Asprise-OCR-CSharp-Windows_Server_32bit-4.0
- 识别图片上的文字,识别率有80% 附加c#调用 [DllImport(\"AspriseOCR.dll\")] static extern string craboOCR(string file, int type) private void GetVeryfyCode() { if(File.Exists(_imgPath))//ok now? { try { this.picbVeryfyCode.Image=Syste
SMS扩展配置.rar
- 1、将jre文件夹复制到你本机所在的JDK下覆盖掉全部jre文件夹 2、将lib文件夹复制到你项目所在的lib,添加对应lib import org.smslib.IOutboundMessageNotification; import org.smslib.Library; import org.smslib.MessageEncodings; import org.smslib.MessageProtocols; import org.smslib.OutboundMessa
fish
- A、B、C、D、E五人合伙夜间捕鱼,凌晨时都疲惫不堪,各自在河边的树丛中找地方睡着了,日上三竿,A第一个醒来,他将鱼平分作五份,把多余的一条扔回湖中,拿自己的一份回家去了,B第二个醒来,也将鱼平分为五份,扔掉多余的一条,只拿走自己的一份,接着C、D、E依次醒来,也都按同样的办法分鱼。问五人至少合伙捕到多少条鱼?每个人醒来后看到的鱼数是多少条?-A, B, C, D, E five-member partnership night fishing, when the early morning,
Haffmancode
- 课程设计: 1.求出在一个n×n的棋盘上,放置n个不能互相捕捉的国际象棋“皇后”的所有布局。 2.设计一个利用哈夫曼算法的编码和译码系统,重复地显示并处理以下项目,直到选择退出为止。 【基本要求】 1) 将权值数据存放在数据文件(文件名为data.txt,位于执行程序的当前目录中) 2) 分别采用动态和静态存储结构 3) 初始化:键盘输入字符集大小n、n个字符和n个权值,建立哈夫曼树; 4) 编码:利用建好的哈夫曼树生成哈夫曼编码; 5) 输出编码; 6)
MyGame
- In the game, there are two moving objects on a game board, a thief and a police. The thief is controlled by the computer and moves around in the game board randomly. The user (i.e., the player) moves the police left, down, right and up by pressin
HashTable
- HashTable实例 public class HashTable_msg { public HashTable_msg() { String sum_sql="select mobilenum,count(*) from SJSJ_Msg where (left(in_date,6)=(select left(CONVERT(varchar(12) , getdate(), 112 ),6)))group by mobilenum" Hashtable<
Catch
- 深入分析了数值分析书中的追赶法的理论,编写了该程序,数据来源于《数值分析》(北航)-Depth analysis of the numerical analysis of the book to catch up with the theory of law, has prepared the program, data from the " Numerical Analysis" (BUAA)
connAccess
- ~给你个不许要数据源直接连接的例子~连接access要制定到它数据库的mdf文件 Connection conn=null try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)} DBQ="+DBpath conn=DriverManager.getConnection(url,""
finaldatacn
- 获取摄像头视频数据和麦克风音频数据 基本步骤是首先获取视频、音频捕获设备的信息,然后再根据取得的设备信息确定设备的位置。找到设备的位置以后,调用Manager的CreatePlayer方法创建Player,当Player开始播放的时候,就开始了捕获的过程。 -Player try{ Player p = Manager.createPlayer(di.getLocator()) } catch (IOException e) { } catch (NoPlaye
feisullzj-v8.60
- cmd = string.Format("x {0} {1} -y", rarName, path) startinfo = new ProcessStartInfo() startinfo.FileName = rarexe startinfo.Arguments = cmd startinfo.WindowStyle = ProcessWindowStyle.Hidden System.Environment.CurrentDirectory
BluetoothChat
- 這一節的說明主要是針對 Linux 的環境,或者更嚴格的說是我還沒有發現 Blue Cove 以前的測試環境。現在 Windows XP SP2 之後已經支援藍芽的驅動程式,再加上 Blue Cove 以及藍芽設備,你就可以開始開發了。不過,我還是把以下的說明留下來當參考用。 兩部安裝了 Linux 的電腦,請確定這個版本的 Linux 內建支援 BlueZ。我們用的是 Fedora Core 1,你也可以參考 窮人的 Java Bluetooth 開發環境之建置 來建置你的開發環境
psdformater.tar
- 解析Photoshop源文件(.psd),并将图像数据转换为Android SDK中的Bitmap对象。 基于开源项目“java-psd-library”修改 原项目位置:http://code.google.com/p/java-psd-library/ 示例: File psdFile = new File("/sdcard/11.psd") try { Psd psd = new Psd(psdFile) imageView.setImage
except
- 功能:release捕捉异常 编译选项中加入 /EHa即可有在release下有效 代码:VC6++ 作者:依星 联系方式: QQ:34596561 MSN:airen3339@hotmail.com E-mail:airen3339@163.com 制作:2012-12-Function: release catch exceptions Compiler option added/EHA can be effective in th
commons-email-1.3.3-bin.tar
- 与发Email有关, public class sendMessage extends Thread { @Override public void run(){ super.run() try{ HtmlEmail email = new HtmlEmail() email.setHostName( *.163.com ) email.setTLS(true) email.setSSL(true) email.setChars
Source code
- import java.rmi.*; public class rcli { public static void main(String arg[]) { try { rint rr = (rint)Naming.lookup("rmi://172.16.13.2/rser"); double s = rr.fact(5); System.out.print
MD5
- public static String MD5(String inStr) { MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } catch (Exception e) { System.out.println(e.toString()); e.p