Ejemplo n.º 1
0
 private OutputStream getLevelDataOutputStream(LevelData levelData) throws FileNotFoundException {
   Chapter chapter = levelData.getChapter();
   return getLevelResourceFileAsOutputStream(
       chapter.getPlayMode().getLevelFolderName()
           + "/"
           + chapter.getFolderName()
           + "/"
           + levelData.getLevelFileName());
 }
Ejemplo n.º 2
0
 private InputStream getLevelFileInputStream(String levelFileName, Chapter chapter)
     throws FileNotFoundException {
   return getLevelResourceFileAsInputStream(
       chapter.getPlayMode().getLevelFolderName()
           + "/"
           + chapter.getFolderName()
           + "/"
           + levelFileName);
 }