> But if this class is compressed in the jar file,the access to the file
> recursivly by invoking read_file_recursivef(new File("/core/doc")) may not
[quoted text clipped - 3 lines]
> implementation of read_file method in the jar file will be more efficiency.
> But it can't work.
Why on earth do you insist on mixing File() objects with access to jar
file contents? A jar in a jar is not a File()! Like any other item in a
jar it is a JarEntry (a subclass of ZipEntry) which you can access as a
stream.
>>>/core/ (here is application)
>>>/core/doc ( here is the doc )
[quoted text clipped - 7 lines]
>>>I compress the application and doc in the jar file.
>>>I want to access to every dir or file recursively.
From within the same application? You don't. You use getResource() or
getResourceAsStream().
From outside the application? With the classes in java.util.jar.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/