I am looking for a way to emulate a filesystem in Java to manage my configuration. The program has a readline library that I am using to provide a primitive shell for interaction.
Originally I was trying to do something with hashmaps but that did not go so well since java would not let me use the <?> generic everywhere. So my idea has shifted more to using the FileSystemProvider class to create a fake filesystem that I can store the config inside of. But due to the lack of tutorials / examples I am unable to figure out the URI for a RAM based filesystem. All the examples I have seen are for ZIP based filesystems. The other problem is I want the filesystem to use fake files kinda like pointers to variables or method in my class files rather than actual files in a folder. Can this be done?
The entire configuration will be saved out to an XML file. I want to use the filesystem just as a means of providing an interface for editing the config.
Can anyone give me some insight on this?