public class FileLegacyChunkStore extends LegacyChunkStore
CHUNK_SHIFTS, CHUNK_SHIFTS_Y
Constructor and Description |
---|
FileLegacyChunkStore(java.io.File path)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
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
close, getChunk, toChunk, toChunk3d
public FileLegacyChunkStore(java.io.File path)
path
- path to a folderprotected java.io.InputStream getInputStream(java.lang.String f1, java.lang.String f2, java.lang.String name) throws DataException
getInputStream
in class LegacyChunkStore
f1
- the first part of the pathnamef2
- the second part of the pathnamename
- the name of the fileDataException
- if there is an error getting data for this chunkpublic boolean isValid()
ChunkStore
isValid
in class ChunkStore