public class ZippedLegacyChunkStore extends LegacyChunkStore
CHUNK_SHIFTS, CHUNK_SHIFTS_Y
Constructor and Description |
---|
ZippedLegacyChunkStore(java.io.File zipFile)
Create an instance.
|
ZippedLegacyChunkStore(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 ZippedLegacyChunkStore(java.io.File zipFile, java.lang.String folder) throws java.io.IOException, java.util.zip.ZipException
zipFile
- the zip filefolder
- the folderjava.io.IOException
- if there is an error opening the zipjava.util.zip.ZipException
- if there is an error opening the zippublic ZippedLegacyChunkStore(java.io.File zipFile) throws java.io.IOException, java.util.zip.ZipException
zipFile
- the zip filejava.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 pathf2
- the second part of the pathname
- 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