Link Details

Link 1048729 thumbnail
User 1189573 avatar

By richigh82
via rick-hightower.blogspot.com
Published: Oct 14 2013 / 11:54

This code is for reading deeply nested classpath resources. It can walk directories and find resources inside jar files. Keep in mind that this is just prototype code. I was just figuring out how I was going to do something. My intention is to throw this away, and then implement it for real. There is a full code walkthrough at the end. This prototype code for reading deeply nested classpath resources. It can walk directories and find resources. It opens up the jar files. Scans directories in the jar files looking for resources. If you wanted to read all files that started with foo and ended with .txt, under /foo/bar/resources/ everywhere on the classpath sort of thing. It would do this not just for the first jar file, but for every jar file. (See Java docs of code example for more details).
  • 9
  • 0
  • 876
  • 1027

Comments

Add your comment
User 1189573 avatar

richigh82 replied ago:

0 votes Vote down Vote up Reply

Which is faster serializing to JSON with Jackson or serializing to binary with ObjectOutputStream? Most people assume that Java object serialization is faster than Jackson JSON serialization because Jackson is using JSON and Java object serialization is binary. Is this true? Find out. http://www.dzone.com/links/which_is_faster_serializing_to_json_with_jackson.html

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax