最新文章列表

常用开源软件maven坐标

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

jar包中资源文件的读取

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

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics