I'm trying to embed the store directory in a jar based applet, but the getResource() doesn't allow any directory access (only files). Is there a way to use it in this way ....
thanks for the help and the api.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hm... theoretically, this should be possible. If it doesn't work the way you tried it, a new implementation of Disk is needed, analogous to FileSystemDisk. I might get around to writing this... one day :-)
Cheers,
-Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to embed the store directory in a jar based applet, but the getResource() doesn't allow any directory access (only files). Is there a way to use it in this way ....
thanks for the help and the api.
that's the code:
java.net.URL url = this.getClass().getClassLoader().getResource("phrases/store");
PhraseStore store = PhraseStore.openReadOnly(new java.io.File(url.toString()));
Hm... theoretically, this should be possible. If it doesn't work the way you tried it, a new implementation of Disk is needed, analogous to FileSystemDisk. I might get around to writing this... one day :-)
Cheers,
-Stefan