public class TrueZipLegacyChunkStore extends LegacyChunkStore
CHUNK_SHIFTS
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
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
java.util.zip.ZipException
public TrueZipLegacyChunkStore(java.io.File zipFile) throws java.io.IOException, java.util.zip.ZipException
zipFile
- the ZIP file to openjava.io.IOException
java.util.zip.ZipException
protected 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
DataException
public 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