public final void traverse(P path, Visitor<P> visitor) throws IOException { // This is OK as it always return true @SuppressWarnings("unchecked") Filter<P> filter = NULL; traverse(path, filter, visitor); }
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; } }
private void assertFS(URL url) throws IOException { ReadFileSystem fs = ReadFileSystem.create(url); Object path = fs.getPath("juzu", "impl", "fs", "spi", "ReadFileSystemTestCase.class"); assertNotNull(path); } }
public boolean delete() { if (fs instanceof ReadWriteFileSystem) { try { return ((ReadWriteFileSystem<P>)fs).removePath(file); } catch (IOException ignore) { return false; } } else { return false; } }
@Override public String getName(P path) { return filtered.getName(path); }
@Override public URL getURL(P path) throws NullPointerException, IOException { return filtered.getURL(path); }
@Override public Iterable<String> getNames(P path) { return filtered.getNames(path); }
@Override public PathType typeOf(P path) throws IOException { return filtered.typeOf(path); }
@Override public File getFile(P path) { return filtered.getFile(path); }
@Override protected long stampOf(P file) throws IOException { return fs.getLastModified(file); }
@Override public Class<P> getType() { return filtered.getType(); }
@Override public Timestamped<Resource> getResource(P file) throws IOException { return filtered.getResource(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; } }
private void assertFS(URL url) throws IOException { ReadFileSystem fs = ReadFileSystem.create(url); Object path = fs.getPath("juzu", "impl", "fs", "spi", "ReadFileSystemTestCase.class"); assertNotNull(path); } }
public boolean delete() { if (fs instanceof ReadWriteFileSystem) { try { return ((ReadWriteFileSystem<P>)fs).removePath(file); } catch (IOException ignore) { return false; } } else { return false; } }
public final void traverse(P path, Visitor<P> visitor) throws IOException { // This is OK as it always return true @SuppressWarnings("unchecked") Filter<P> filter = NULL; traverse(path, filter, visitor); }
@Override public PathType typeOf(P path) throws IOException { return filtered.typeOf(path); }