Menu

Use SMYLE in applet?

Help
2005-06-03
2013-04-08
  • Marcus Hauer

    Marcus Hauer - 2005-06-03

    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.

     
    • Marcus Hauer

      Marcus Hauer - 2005-06-03

      that's the code:

      java.net.URL url = this.getClass().getClassLoader().getResource("phrases/store");
      PhraseStore store = PhraseStore.openReadOnly(new java.io.File(url.toString()));

       
      • Stefan Reich

        Stefan Reich - 2005-06-21

        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

         

Log in to post a comment.

MongoDB Logo MongoDB