Consider Java
Jay's Tech Blog
2006-04-28
压缩包内的资源数据是通过ClassLoader获得的
以前就一直有这个疑问,今天一不小心看到了:
String resourceName = "org/jbpm/ui/resource/gpd.xml";
InputStream stream = getClass().getClassLoader().getResourceAsStream(resourceName);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment