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