Added TrueZIP support.

This commit is contained in:
sk89q
2010-10-21 11:36:20 -07:00
parent e4f6b380b0
commit eebe6e1af3
4 changed files with 183 additions and 14 deletions

View File

@ -56,7 +56,11 @@ public class Snapshot {
*/
public ChunkStore getChunkStore() throws IOException {
if (file.getName().toLowerCase().endsWith(".zip")) {
return new ZippedAlphaChunkStore(file);
try {
return new TrueZipAlphaChunkStore(file);
} catch (NoClassDefFoundError e) {
return new ZippedAlphaChunkStore(file);
}
} else {
return new AlphaChunkStore(file);
}