public class SftpFileSystem extends BaseFileSystem<SftpPath> implements SessionHolder<ClientSession>, ClientSessionHolder
Modifier and Type | Class and Description |
---|---|
static class |
SftpFileSystem.DefaultGroupPrincipal |
static class |
SftpFileSystem.DefaultUserPrincipal |
static class |
SftpFileSystem.DefaultUserPrincipalLookupService |
Modifier and Type | Field and Description |
---|---|
static NavigableSet<String> |
UNIVERSAL_SUPPORTED_VIEWS |
log
Constructor and Description |
---|
SftpFileSystem(SftpFileSystemProvider provider,
String id,
ClientSession session,
SftpClientFactory factory,
SftpVersionSelector selector,
SftpErrorDataHandler errorDataHandler) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected SftpPath |
create(String root,
List<String> names) |
SftpClient |
getClient() |
ClientSession |
getClientSession() |
SftpPath |
getDefaultDir() |
List<FileStore> |
getFileStores() |
String |
getId() |
int |
getReadBufferSize() |
ClientSession |
getSession() |
SftpErrorDataHandler |
getSftpErrorDataHandler() |
SftpVersionSelector |
getSftpVersionSelector() |
UserPrincipalLookupService |
getUserPrincipalLookupService() |
int |
getVersion() |
int |
getWriteBufferSize() |
boolean |
isOpen() |
SftpFileSystemProvider |
provider() |
void |
setReadBufferSize(int size) |
void |
setWriteBufferSize(int size) |
Set<String> |
supportedFileAttributeViews() |
String |
toString() |
appendDedupSep, create, create, getPath, getPathMatcher, getRootDirectories, getSeparator, globToRegex, handleWindowsSeparator, hostFsHasWindowsSeparator, isReadOnly, newWatchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSessionContext
public static final NavigableSet<String> UNIVERSAL_SUPPORTED_VIEWS
public SftpFileSystem(SftpFileSystemProvider provider, String id, ClientSession session, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
IOException
public final SftpVersionSelector getSftpVersionSelector()
public SftpErrorDataHandler getSftpErrorDataHandler()
public final String getId()
public final int getVersion()
public SftpFileSystemProvider provider()
provider
in class BaseFileSystem<SftpPath>
public List<FileStore> getFileStores()
getFileStores
in class BaseFileSystem<SftpPath>
public int getReadBufferSize()
public void setReadBufferSize(int size)
public int getWriteBufferSize()
public void setWriteBufferSize(int size)
protected SftpPath create(String root, List<String> names)
create
in class BaseFileSystem<SftpPath>
public ClientSession getClientSession()
getClientSession
in interface ClientSessionHolder
ClientSession
usedpublic ClientSession getSession()
getSession
in interface SessionHolder<ClientSession>
public SftpClient getClient() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FileSystem
IOException
public boolean isOpen()
isOpen
in class FileSystem
public Set<String> supportedFileAttributeViews()
supportedFileAttributeViews
in class FileSystem
public UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService
in class FileSystem
public SftpPath getDefaultDir()
getDefaultDir
in class BaseFileSystem<SftpPath>
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.