/** * Create a new file system, configured by a the argument <code>mountPointConfig</code>: when the mount point * configuration is not null, it is mounted on the returned file system. * * @param mountPointConfig the mount point configuration * @return the configured file system * @throws IOException any io exception */ protected FS createFS(String mountPointConfig) throws IOException { FS.Builder builder = new FS.Builder(); for (Map.Entry<String, FSMountFactory<?>> driver : getMountFactories().entrySet()) { builder.register(driver.getKey(), driver.getValue()); } if (mountPointConfig != null) { builder.mount(mountPointConfig); } return builder.build(); }
/** * Create a new file system, configured by a the argument <code>mountPointConfig</code>: when the mount point * configuration is not null, it is mounted on the returned file system. * * @param mountPointConfig the mount point configuration * @return the configured file system * @throws IOException any io exception */ protected FS createFS(String mountPointConfig) throws IOException { FS.Builder builder = new FS.Builder(); for (Map.Entry<String, FSMountFactory<?>> driver : getMountFactories().entrySet()) { builder.register(driver.getKey(), driver.getValue()); } if (mountPointConfig != null) { builder.mount(mountPointConfig); } return builder.build(); }
/** * Create a new file system, configured by a the argument <code>mountPointConfig</code>: when the mount point * configuration is not null, it is mounted on the returned file system. * * @param mountPointConfig the mount point configuration * @return the configured file system * @throws IOException any io exception */ protected FS createFS(String mountPointConfig) throws IOException { FS.Builder builder = new FS.Builder(); for (Map.Entry<String, FSMountFactory<?>> driver : getMountFactories().entrySet()) { builder.register(driver.getKey(), driver.getValue()); } if (mountPointConfig != null) { builder.mount(mountPointConfig); } return builder.build(); }