public boolean containsDir(String dir) { if (dir == null) return false; return baseBundleFile.containsDir(prependNestedDir(dir)); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (filterDir(path)) { return null; } final Enumeration<String> basePaths = baseBundleFile.getEntryPaths(prependNestedDir(path), recurse); final int cpLength = nestedDirName.length(); if (basePaths == null) return null; return new Enumeration<String>() { public boolean hasMoreElements() { return basePaths.hasMoreElements(); } public String nextElement() { String next = basePaths.nextElement(); return next.substring(cpLength); } }; }
public boolean containsDir(String dir) { if (dir == null) return false; if (filterPath(dir)) { return false; } return baseBundleFile.containsDir(prependNestedDir(dir)); }
public BundleFile createNestedBundleFile(String nestedDir, BundleFile bundleFile, Generation generation) { // here we assume the content is a path offset into the base bundle file; create a NestedDirBundleFile return wrapBundleFile(new NestedDirBundleFile(bundleFile, nestedDir), generation, false); }
private boolean filterDir(String path) { if (filterPrefixes.isEmpty()) { return false; } if (path.length() > 0 && path.charAt(path.length() - 1) != '/') { path = path + '/'; } return filterPath(path); }
public BundleFile createNestedBundleFile(String nestedDir, BundleFile bundleFile, Generation generation, Collection<String> filterPrefixes) { // here we assume the content is a path offset into the base bundle file; create a NestedDirBundleFile return wrapBundleFile(new NestedDirBundleFile(bundleFile, nestedDir, filterPrefixes), generation, false); }
private boolean filterDir(String path) { if (filterPrefixes.isEmpty()) { return false; } if (path.length() > 0 && path.charAt(path.length() - 1) != '/') { path = path + '/'; } return filterPath(path); }
public boolean containsDir(String dir) { if (dir == null) return false; return baseBundleFile.containsDir(prependNestedDir(dir)); }
public BundleEntry getEntry(String path) { if (filterPath(path)) { return null; } return baseBundleFile.getEntry(prependNestedDir(path)); }
public BundleFile createNestedBundleFile(String nestedDir, BundleFile bundleFile, Generation generation) { // here we assume the content is a path offset into the base bundle file; create a NestedDirBundleFile return wrapBundleFile(new NestedDirBundleFile(bundleFile, nestedDir), generation, false); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (filterDir(path)) { return null; } final Enumeration<String> basePaths = baseBundleFile.getEntryPaths(prependNestedDir(path), recurse); final int cpLength = nestedDirName.length(); if (basePaths == null) return null; return new Enumeration<String>() { public boolean hasMoreElements() { return basePaths.hasMoreElements(); } public String nextElement() { String next = basePaths.nextElement(); return next.substring(cpLength); } }; }
public boolean containsDir(String dir) { if (dir == null) return false; return baseBundleFile.containsDir(prependNestedDir(dir)); }
public boolean containsDir(String dir) { if (dir == null) return false; if (filterPath(dir)) { return false; } return baseBundleFile.containsDir(prependNestedDir(dir)); }
public BundleFile createNestedBundleFile(String nestedDir, BundleFile bundleFile, Generation generation) { // here we assume the content is a path offset into the base bundle file; create a NestedDirBundleFile return wrapBundleFile(new NestedDirBundleFile(bundleFile, nestedDir), generation, false); }
public boolean containsDir(String dir) { if (dir == null) return false; return baseBundleFile.containsDir(prependNestedDir(dir)); }
public BundleEntry getEntry(String path) { if (filterPath(path)) { return null; } return baseBundleFile.getEntry(prependNestedDir(path)); }
public BundleFile createNestedBundleFile(String nestedDir, BundleFile bundleFile, Generation generation) { // here we assume the content is a path offset into the base bundle file; create a NestedDirBundleFile return wrapBundleFile(new NestedDirBundleFile(bundleFile, nestedDir), generation, false); }
public BundleEntry getEntry(String path) { return baseBundleFile.getEntry(prependNestedDir(path)); }
public BundleFile createNestedBundleFile(String nestedDir, BundleFile bundleFile, Generation generation, Collection<String> filterPrefixes) { // here we assume the content is a path offset into the base bundle file; create a NestedDirBundleFile return wrapBundleFile(new NestedDirBundleFile(bundleFile, nestedDir, filterPrefixes), generation, false); }
public BundleEntry getEntry(String path) { return baseBundleFile.getEntry(prependNestedDir(path)); }