Good abstraction of java.io.File - visitor pattern, differentiationbetween files and folders etc.

M

Martin Burger

Hello,

I think org.eclipse.core.resources provides with IFile, IFolder,
IResourceVisitor etc. a very good abstraction of java.io.File:

http://help.eclipse.org/help31/inde...api/org/eclipse/core/resources/IResource.html

I'm writing a library that needs some functionality to traverse folders
and to manipulate files. That library should be not depend on the whole
Eclipse stuff (just a "JAR", not a plug-in for Eclipse).

Is there any way to use org.eclipse.core.resources in that way? Anybody
tried that?

If it is not possible (I think it is at least not easy), do you know any
other abstraction of java.io.File providing visitor pattern,
differentiation between files and folders etc.?

Thank you,

Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top