public class ZipResourcePack extends AbstractFileResourcePack
| Modifier and Type | Field and Description |
|---|---|
private ZipFile |
file |
static Splitter |
TYPE_NAMESPACE_SPLITTER |
base| Constructor and Description |
|---|
ZipResourcePack(File base) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsFile(String name) |
protected void |
finalize() |
Collection<Identifier> |
findResources(ResourceType type,
String namespace,
String prefix,
int maxDepth,
Predicate<String> pathFilter) |
Set<String> |
getNamespaces(ResourceType type) |
private ZipFile |
getZipFile() |
protected InputStream |
openFile(String name) |
contains, getName, open, openRoot, parseMetadata, parseMetadata, relativize, warnNonLowerCaseNamespacepublic static final Splitter TYPE_NAMESPACE_SPLITTER
private ZipFile file
public ZipResourcePack(File base)
private ZipFile getZipFile() throws IOException
IOExceptionprotected InputStream openFile(String name) throws IOException
openFile in class AbstractFileResourcePackIOExceptionpublic boolean containsFile(String name)
containsFile in class AbstractFileResourcePackpublic Set<String> getNamespaces(ResourceType type)
protected void finalize()
throws Throwable
public void close()
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)