public class TrueZipMcRegionChunkStore extends McRegionChunkStore
| Modifier and Type | Field and Description |
|---|---|
protected String |
folder |
protected de.schlichtherle.util.zip.ZipFile |
zip |
protected File |
zipFile |
cachedReader, curFilenameCHUNK_SHIFTS| Constructor and Description |
|---|
TrueZipMcRegionChunkStore(File zipFile)
Create an instance.
|
TrueZipMcRegionChunkStore(File zipFile,
String folder)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close resources.
|
protected InputStream |
getInputStream(String name,
String worldName)
Get the input stream for a chunk file.
|
boolean |
isValid()
Returns whether the chunk store is of this type.
|
getChunkTag, getFilename, getReadergetChunk, toChunkprotected File zipFile
protected de.schlichtherle.util.zip.ZipFile zip
protected String folder
public TrueZipMcRegionChunkStore(File zipFile, String folder) throws IOException, ZipException
zipFile - the ZIP filefolder - the folder to look intoIOExceptionZipExceptionpublic TrueZipMcRegionChunkStore(File zipFile) throws IOException, ZipException
zipFile - the ZIP fileIOExceptionZipExceptionprotected InputStream getInputStream(String name, String worldName) throws IOException, DataException
getInputStream in class McRegionChunkStorename - the nameworldName - the world nameIOExceptionDataExceptionpublic void close()
throws IOException
ChunkStoreclose in class McRegionChunkStoreIOException - on I/O errorpublic boolean isValid()
ChunkStoreisValid in class ChunkStoreCopyright © 2010-2014. All Rights Reserved.