public abstract class ArchiveHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ArchiveHandler.EntryInfo |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_LENGTH |
static long |
DEFAULT_TIMESTAMP |
Modifier | Constructor and Description |
---|---|
protected |
ArchiveHandler(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCaches() |
abstract byte [] |
contentsToByteArray(java.lang.String relativePath) |
protected abstract java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> |
createEntriesMap() |
protected ArchiveHandler.EntryInfo |
createRootEntry() |
void |
dispose() |
FileAttributes |
getAttributes(java.lang.String relativePath) |
protected java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> |
getEntriesMap() |
protected ArchiveHandler.EntryInfo |
getEntryInfo(java.lang.String relativePath) |
java.io.File |
getFile() |
java.io.InputStream |
getInputStream(java.lang.String relativePath) |
protected ArchiveHandler.EntryInfo |
getOrCreate(java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> map,
java.lang.String entryName) |
java.lang.String [] |
list(java.lang.String relativePath) |
protected Pair<java.lang.String,java.lang.String> |
splitPath(java.lang.String entryName)
Deprecated.
Use
splitPathAndFix(String) instead to correctly handle invalid entry names |
protected Trinity<java.lang.String,java.lang.String,java.lang.String> |
splitPathAndFix(java.lang.String entryName) |
public static final long DEFAULT_LENGTH
public static final long DEFAULT_TIMESTAMP
public java.io.File getFile()
public FileAttributes getAttributes(java.lang.String relativePath)
public java.lang.String [] list(java.lang.String relativePath)
public void dispose()
protected void clearCaches()
protected ArchiveHandler.EntryInfo getEntryInfo(java.lang.String relativePath)
protected java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> getEntriesMap()
protected abstract java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> createEntriesMap() throws java.io.IOException
java.io.IOException
protected ArchiveHandler.EntryInfo createRootEntry()
protected ArchiveHandler.EntryInfo getOrCreate(java.util.Map<java.lang.String,ArchiveHandler.EntryInfo> map, java.lang.String entryName)
@Deprecated protected Pair<java.lang.String,java.lang.String> splitPath(java.lang.String entryName)
splitPathAndFix(String)
instead to correctly handle invalid entry namesprotected Trinity<java.lang.String,java.lang.String,java.lang.String> splitPathAndFix(java.lang.String entryName)
public abstract byte [] contentsToByteArray(java.lang.String relativePath) throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream(java.lang.String relativePath) throws java.io.IOException
java.io.IOException