我认为您使用zip文件的方法很有意义。大概您将对
getResourceAsStreamzip的内部进行操作,该zip在逻辑上看起来像是目录树。
骨架方法:
InputStream is = getClass().getResourceAsStream("my_embedded_file.zip");ZipInputStream zis = new ZipInputStream(is);ZipEntry entry;while ((entry = zis.getNextEntry()) != null) { // do something with the entry - for example, extract the data }


