public abstract class ZipHandlerBase extends ArchiveHandler
ArchiveHandler.EntryInfo
DEFAULT_LENGTH, DEFAULT_TIMESTAMP
Constructor and Description |
---|
ZipHandlerBase(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
protected abstract ResourceHandle<java.util.zip.ZipFile> |
acquireZipHandle() |
protected java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> |
buildEntryMapForZipFile(java.util.zip.ZipFile zip) |
byte [] |
contentsToByteArray(java.lang.String relativePath) |
protected java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> |
createEntriesMap() |
void |
dispose() |
protected abstract long |
getEntryFileStamp() |
java.io.InputStream |
getInputStream(java.lang.String relativePath) |
clearCaches, createRootEntry, getAttributes, getEntriesMap, getEntryInfo, getFile, getOrCreate, list, splitPath, splitPathAndFix
protected java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> createEntriesMap() throws java.io.IOException
createEntriesMap
in class ArchiveHandler
java.io.IOException
protected java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> buildEntryMapForZipFile(java.util.zip.ZipFile zip)
public void dispose()
dispose
in class ArchiveHandler
public byte [] contentsToByteArray(java.lang.String relativePath) throws java.io.IOException
contentsToByteArray
in class ArchiveHandler
java.io.IOException
public java.io.InputStream getInputStream(java.lang.String relativePath) throws java.io.IOException
getInputStream
in class ArchiveHandler
java.io.IOException
protected abstract long getEntryFileStamp()
protected abstract ResourceHandle<java.util.zip.ZipFile> acquireZipHandle() throws java.io.IOException
java.io.IOException