package org.xbib.files.jadaptive.sftp;

import org.xbib.files.FileService;
import org.xbib.files.FileServiceProvider;

import java.net.URI;
import java.util.Map;

public class SftpFileServiceProvider implements FileServiceProvider {

    @Override
    public FileService provide(URI uri, Map<String, ?> env) {
        return uri.isAbsolute() && uri.getScheme().equals("sftp") ?  new SftpFileService(uri, env) : null;
    }
}
