Package | Description |
---|---|
org.apache.sshd.sftp.client | |
org.apache.sshd.sftp.client.impl |
Modifier and Type | Field and Description |
---|---|
static Set<SftpClient.OpenMode> |
SftpClient.DEFAULT_CHANNEL_MODES
Default modes for opening a channel if no specific modes specified
|
Modifier and Type | Method and Description |
---|---|
static SftpClient.OpenMode |
SftpClient.OpenMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SftpClient.OpenMode[] |
SftpClient.OpenMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Set<SftpClient.OpenMode> |
SftpClient.OpenMode.fromOpenOptions(Collection<? extends OpenOption> options)
Converts
StandardOpenOption -s into SftpClient.OpenMode -s |
Modifier and Type | Method and Description |
---|---|
default SftpClient.CloseableHandle |
SftpClient.open(String path,
SftpClient.OpenMode... options)
Opens a remote file with the specified mode(s)
|
default FileChannel |
SftpClient.openRemoteFileChannel(String path,
SftpClient.OpenMode... modes) |
default InputStream |
SftpClient.read(String path,
int bufferSize,
SftpClient.OpenMode... mode) |
default InputStream |
SftpClient.read(String path,
SftpClient.OpenMode... mode) |
default OutputStream |
SftpClient.write(String path,
int bufferSize,
SftpClient.OpenMode... mode) |
default OutputStream |
SftpClient.write(String path,
SftpClient.OpenMode... mode) |
Modifier and Type | Method and Description |
---|---|
SftpClient.CloseableHandle |
SftpClient.open(String path,
Collection<SftpClient.OpenMode> options)
Opens a remote file with the specified mode(s)
|
FileChannel |
SftpClient.openRemoteFileChannel(String path,
Collection<SftpClient.OpenMode> modes)
Opens an
FileChannel on the specified remote path |
default InputStream |
SftpClient.read(String path,
Collection<SftpClient.OpenMode> mode) |
InputStream |
SftpClient.read(String path,
int bufferSize,
Collection<SftpClient.OpenMode> mode)
Read a remote file's data via an input stream
|
default OutputStream |
SftpClient.write(String path,
Collection<SftpClient.OpenMode> mode) |
OutputStream |
SftpClient.write(String path,
int bufferSize,
Collection<SftpClient.OpenMode> mode)
Write to a remote file via an output stream
|
Modifier and Type | Field and Description |
---|---|
protected Collection<SftpClient.OpenMode> |
SftpRemotePathChannel.modes |
static Set<SftpClient.OpenMode> |
SftpRemotePathChannel.READ_MODES |
static Set<SftpClient.OpenMode> |
SftpRemotePathChannel.WRITE_MODES |
Modifier and Type | Method and Description |
---|---|
SftpClient.CloseableHandle |
AbstractSftpClient.open(String path,
Collection<SftpClient.OpenMode> options) |
FileChannel |
AbstractSftpClient.openRemoteFileChannel(String path,
Collection<SftpClient.OpenMode> modes) |
InputStream |
AbstractSftpClient.read(String path,
int bufferSize,
Collection<SftpClient.OpenMode> mode) |
OutputStream |
AbstractSftpClient.write(String path,
int bufferSize,
Collection<SftpClient.OpenMode> mode) |
Constructor and Description |
---|
SftpInputStreamAsync(AbstractSftpClient client,
int bufferSize,
String path,
Collection<SftpClient.OpenMode> mode) |
SftpOutputStreamAsync(AbstractSftpClient client,
int bufferSize,
String path,
Collection<SftpClient.OpenMode> mode) |
SftpRemotePathChannel(String path,
SftpClient sftp,
boolean closeOnExit,
Collection<SftpClient.OpenMode> modes) |
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.