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()
Close resources.
|
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
ChunkStore
close
in class ChunkStore
java.io.IOException
- on I/O errorpublic boolean isValid()
ChunkStore
isValid
in class ChunkStore