<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lizongbo at 618119.com &#187; findtext</title>
	<atom:link href="http://618119.com/tag/findtext/feed" rel="self" type="application/rss+xml" />
	<link>http://618119.com</link>
	<description>工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:25:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>使用java多线程在多个文本文件中快速查找指定字符串</title>
		<link>http://618119.com/archives/2007/12/21/51.html</link>
		<comments>http://618119.com/archives/2007/12/21/51.html#comments</comments>
		<pubDate>Fri, 21 Dec 2007 03:30:50 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[findtext]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2007/12/21/51.html</guid>
		<description><![CDATA[在工作中经常需要在很多文本文件中查找指定的内容.而windows系统中没有linux中提供的强大的文本查找功能。 通常 可以在Jbuilder,EditPlus,UltraEdit等开发工具或文本编辑器里进行多文件查找， 也可以在Winrar里使用查找功能，但是这些工具都有其不够方便的地方，就是没法吧查询到的结果复制保存到文件里， 而且在远程服务器上，通常没有 Jbuilder,EditPlus,UltraEdit这些，用winrar查找是非常繁琐。 于是我写一段java代码来进行查询，并将查询结果记录到文件中。 我用它在远程服务器查找文本话单，也在本地查找 Awstats 的log。 文本查找的代码如下： FindText.java的代码 [code] package com.lizongbo; import java.util.concurrent.*; import java.io.File; import java.io.FileFilter; public class FindText { private static ThreadPoolExecutor threadPool = null; private static FileFilter ff = new FileFilter() { public boolean accept(File pathname) { String pathl = pathname.getName().toLowerCase(); //只匹配 .txt 和 .log 结尾的文件 if (pathname.isDirectory() [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2007/12/21/51.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

