@Override public Timestamped<Resource> getResource(P file) throws IOException { return filtered.getResource(file); }
@Override public Timestamped<Resource> getResource(P file) throws IOException { return filtered.getResource(file); }
private Timestamped<Resource> assertContent() throws IOException { if (writing) { throw new IllegalStateException("Opened for writing"); } else { if (content == null) { content = fs.getResource(file); if (content == null) { throw new FileNotFoundException("File " + key + " cannot be found"); } } return content; } }
private Timestamped<Resource> assertContent() throws IOException { if (writing) { throw new IllegalStateException("Opened for writing"); } else { if (content == null) { content = fs.getResource(file); if (content == null) { throw new FileNotFoundException("File " + key + " cannot be found"); } } return content; } }
@Override public Timestamped<Resource> getResource(Context file) throws IOException { for (int i = 0;i < file.paths.length;i++) { ReadFileSystem compound = compounds[i]; Object p = file.paths[i]; if (p != null) { PathType type = compound.typeOf(p); if (type == PathType.FILE) { return compound.getResource(p); } } } throw new IOException("No resource at " + file); }
@Override public Timestamped<Resource> getResource(Context file) throws IOException { for (int i = 0;i < file.paths.length;i++) { ReadFileSystem compound = compounds[i]; Object p = file.paths[i]; if (p != null) { PathType type = compound.typeOf(p); if (type == PathType.FILE) { return compound.getResource(p); } } } throw new IOException("No resource at " + file); }
public final Timestamped<Resource> getResource(Iterable<String> names) throws IOException { P path = getPath(names); if (path != null && isFile(path)) { return getResource(path); } else { return null; } }
public final Timestamped<Resource> getResource(Iterable<String> names) throws IOException { P path = getPath(names); if (path != null && isFile(path)) { return getResource(path); } else { return null; } }
@Override protected long stampOf(P file) throws IOException { juzu.impl.common.Timestamped<Resource> resource = fs.getResource(file); InputStream in = resource.getObject().getInputStream(); byte[] bytes = Tools.bytes(in); return Tools.md5(bytes); }
@Override protected long stampOf(P file) throws IOException { juzu.impl.common.Timestamped<Resource> resource = fs.getResource(file); InputStream in = resource.getObject().getInputStream(); byte[] bytes = Tools.bytes(in); return Tools.md5(bytes); }
case 0: { if (filter.acceptFile(srcPath, srcName)) { dst.updateResource(dstPath, getResource(srcPath).getObject());
case 0: { if (filter.acceptFile(srcPath, srcName)) { dst.updateResource(dstPath, getResource(srcPath).getObject());