public class TrueZipLegacyChunkStore extends LegacyChunkStore
CHUNK_SHIFTS, CHUNK_SHIFTS_Y
Constructor and Description |
---|
TrueZipLegacyChunkStore(java.io.File zipFile)
Create an instance.
|
TrueZipLegacyChunkStore(java.io.File zipFile,
java.lang.String folder)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected java.io.InputStream |
getInputStream(java.lang.String f1,
java.lang.String f2,
java.lang.String name)
Get the input stream for a chunk file.
|
boolean |
isValid()
Returns whether the chunk store is of this type.
|
getChunkTag, getFilename, getFilename
getChunk, toChunk, toChunk3d
public TrueZipLegacyChunkStore(java.io.File zipFile, java.lang.String folder) throws java.io.IOException, java.util.zip.ZipException
zipFile
- the ZIP file to openfolder
- the folder to look into in the ZIPjava.io.IOException
- if there is an error opening the zipjava.util.zip.ZipException
- if there is an error opening the zippublic TrueZipLegacyChunkStore(java.io.File zipFile) throws java.io.IOException, java.util.zip.ZipException
zipFile
- the ZIP file to openjava.io.IOException
- if there is an error opening the zipjava.util.zip.ZipException
- if there is an error opening the zipprotected java.io.InputStream getInputStream(java.lang.String f1, java.lang.String f2, java.lang.String name) throws java.io.IOException, DataException
getInputStream
in class LegacyChunkStore
f1
- the first part of the filenamef2
- the second part of the filenamename
- the name of the filejava.io.IOException
- if there is an error getting the chunk dataDataException
- if there is an error getting the chunk datapublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class ChunkStore
java.io.IOException
public boolean isValid()
ChunkStore
isValid
in class ChunkStore