最新文章列表

常用开源软件maven坐标

Maven仓库查询 http://search.maven.org 油多不坏菜,这些都加上算了 <repositories> <repository> <id>java-repo</id> <name>java Repository</name> <url>http://download. ...
yingzhor 评论(4) 有17528人浏览 2011-04-19 11:58

jar包中资源文件的读取

JAVA里面对于类进行调用配置资源的文件数据,以this.getClass().getResourceAsStream()来读取比较合适。 路径采用相对路径直接可以从工程的path路径去找。 主要问题是如果类中采用的是静态块的话,则该this.getClass()报错,因为读静态块时,可能该对象并为构造,所以用this来指向当前对象不行。   ClassLoader提供了两个方法用于从装 ...
Jar 
gao234 评论(0) 有1037人浏览 2011-02-25 18:25

Chapter 18. I/O -- Thinking in Java

1) The File class has a deceiving name; you might think it refers to a file, but it doesn’t. In fact, "FilePath" would have been a better name for the class. It can represent either the nam ...
leonzhx 评论(0) 有1532人浏览 2010-10-03 17:37

最近博客热门TAG

Java(141741) C(73643) C++(68602) SQL(64557) C#(59604) XML(59131) HTML(59042) JavaScript(54916) .net(54782) Web(54511) 工作(54116) Linux(50906) Oracle(49861) 应用服务器(43285) Spring(40811) 编程(39452) Windows(39380) JSP(37540) MySQL(37266) 数据结构(36420)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics