@Override public FsController controller( FsCompositeDriver driver, FsMountPoint mountPoint) { return manager.controller(driver, mountPoint); }
@Override public <X extends Exception, V extends Visitor<? super FsController, X>> V accept(final Filter<? super FsController> filter, V visitor) throws X { return manager.accept(filter, visitor); }
/** * {@inheritDoc} * <p> * The implementation in the class {@link FsArchiveDriver} forwards the * call to the given file system manager. */ @Override public final FsController newController( FsManager context, FsModel model, @Nonnull FsController parent) { assert parent.getModel().equals(model.getParent()); return context.newController(this, model, parent); }
@Override public FsModel newModel( FsDriver context, FsMountPoint mountPoint, FsModel parent) { assert null == parent ? null == mountPoint.getParent() : parent.getMountPoint().equals(mountPoint.getParent()); return manager.newModel(context, mountPoint, parent); }
/** * {@inheritDoc} * <p> * The implementation in the class {@link FsDriver} forwards the call to * the given file system manager. */ @Override public final FsModel newModel( FsManager context, FsMountPoint mountPoint, FsModel parent) { assert null == parent ? null == mountPoint.getParent() : parent.getMountPoint().equals(mountPoint.getParent()); return context.newModel(this, mountPoint, parent); }
private FsController getController(FsMountPoint mountPoint) { return TConfig .current() .getManager() .controller(getArchiveDetector(), mountPoint); }
private int count(Filter<? super FsController> filter) { return manager.accept(filter, new CountingVisitor()).get(); }
@Override public FsController newController( FsArchiveDriver<? extends FsArchiveEntry> context, FsModel model, @Nullable FsController parent) { assert null == parent ? null == model.getParent() : parent.getModel().equals(model.getParent()); return manager.newController(context, model, parent); }
@SuppressWarnings("deprecation") TFileSystem(final TPath path) { assert null != path; this.controller = TConfig .current() .getManager() .controller(path.getArchiveDetector(), path.getMountPoint()); this.provider = TFileSystemProvider.get(path.getName()); assert invariants(); }
manager().accept(filter, new SyncVisitor()).check();
.SINGLETON .get() .controller(DRIVER, mp) .node(FsAccessOptions.NONE, en); } catch (IOException ex) {
.current() .getManager() .controller(detector(file), path.getMountPoint()) .output( options.clear(CREATE_PARENTS), path.getNodeName(),
/** * Returns an input socket for the given file. * * @param file the file to read. * @param options the options for accessing the file. * @return An input socket for the given file. */ static InputSocket<?> input( final BitField<FsAccessOption> options, final File file) { if (file instanceof TFile) { final TFile tfile= (TFile) file; final TFile archive = tfile.getInnerArchive(); if (null != archive) return archive .getController() .input(options, tfile.getNodeName()); } final FsNodePath path = new FsNodePath(file); return TConfig .current() .getManager() .controller(detector(file), path.getMountPoint()) .input(options, path.getNodeName()); }