use of org.apache.commons.vfs2.provider.FileProvider in project commons-vfs by apache.
the class DefaultFileSystemManager method getFileSystemConfigBuilder.
/**
* Get the configuration builder for the given scheme.
*
* @param scheme The scheme to locate.
* @return The FileSystemConfigBuilder for the scheme.
* @throws FileSystemException if the given scheme is not konwn
*/
@Override
public FileSystemConfigBuilder getFileSystemConfigBuilder(final String scheme) throws FileSystemException {
final FileProvider provider = providers.get(scheme);
FileSystemException.requireNonNull(provider, "vfs.impl/unknown-scheme.error", scheme);
return provider.getConfigBuilder();
}
Aggregations