As you all know, it is very convenient to put all kind of resources (images, audio files, …) into a jar-archive and access them using getResource or getResourceAsStream. The disadvantage is that one cannot use nio classes in order to have fast random access like using the FileChannel.
Therefore I was wondering how a JRE deals with reources/jar files in the classpath. Would it be possible at all to get random access on resources. I mean, does the runtime decompress all classes/resources when noticing their presence? Of course a fast random access on compressed ZipEntries does not make sense.
Any thoughts on this?