Link Details

Link 1048729 thumbnail
User 1189573 avatar

By richigh82
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
  • 941
  • 1031


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.

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)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java