public class ZippedMcRegionChunkStore extends McRegionChunkStore
| Modifier and Type | Field and Description |
|---|---|
protected String |
folder |
protected ZipFile |
zip |
protected File |
zipFile |
cachedReader, curFilenameCHUNK_SHIFTS| Constructor and Description |
|---|
ZippedMcRegionChunkStore(File zipFile)
Create an instance.
|
ZippedMcRegionChunkStore(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 ZipFile zip
protected String folder
public ZippedMcRegionChunkStore(File zipFile, String folder) throws IOException, ZipException
zipFile - the ZIP filefolder - the folderIOExceptionZipExceptionpublic ZippedMcRegionChunkStore(File zipFile) throws IOException, ZipException
zipFile - the ZIP fileIOExceptionZipExceptionprotected InputStream getInputStream(String name, String worldName) throws IOException, DataException
McRegionChunkStoregetInputStream in class McRegionChunkStorename - the name of the chunk fileworldName - 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.