Package | Description |
---|---|
org.apache.sshd.client.subsystem.sftp | |
org.apache.sshd.client.subsystem.sftp.fs | |
org.apache.sshd.client.subsystem.sftp.impl |
Modifier and Type | Field and Description |
---|---|
static java.util.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(java.lang.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 java.util.Set<SftpClient.OpenMode> |
SftpClient.OpenMode.fromOpenOptions(java.util.Collection<? extends java.nio.file.OpenOption> options)
Converts
StandardOpenOption -s into SftpClient.OpenMode -s |
Modifier and Type | Method and Description |
---|---|
default SftpClient.CloseableHandle |
SftpClient.open(java.lang.String path,
SftpClient.OpenMode... options)
Opens a remote file with the specified mode(s)
|
default java.nio.channels.FileChannel |
SftpClient.openRemoteFileChannel(java.lang.String path,
SftpClient.OpenMode... modes) |
default java.io.InputStream |
SftpClient.read(java.lang.String path,
int bufferSize,
SftpClient.OpenMode... mode) |
default java.io.InputStream |
SftpClient.read(java.lang.String path,
SftpClient.OpenMode... mode) |
default java.io.OutputStream |
SftpClient.write(java.lang.String path,
int bufferSize,
SftpClient.OpenMode... mode) |
default java.io.OutputStream |
SftpClient.write(java.lang.String path,
SftpClient.OpenMode... mode) |
Modifier and Type | Method and Description |
---|---|
SftpClient.CloseableHandle |
SftpClient.open(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> options)
Opens a remote file with the specified mode(s)
|
java.nio.channels.FileChannel |
SftpClient.openRemoteFileChannel(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> modes)
Opens an
FileChannel on the specified remote path |
default java.io.InputStream |
SftpClient.read(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.InputStream |
SftpClient.read(java.lang.String path,
int bufferSize,
java.util.Collection<SftpClient.OpenMode> mode)
Read a remote file's data via an input stream
|
default java.io.OutputStream |
SftpClient.write(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.OutputStream |
SftpClient.write(java.lang.String path,
int bufferSize,
java.util.Collection<SftpClient.OpenMode> mode)
Write to a remote file via an output stream
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
SftpFileSystem.Wrapper.read(java.lang.String path,
SftpClient.OpenMode... mode) |
java.io.OutputStream |
SftpFileSystem.Wrapper.write(java.lang.String path,
SftpClient.OpenMode... mode) |
Modifier and Type | Method and Description |
---|---|
SftpClient.CloseableHandle |
SftpFileSystem.Wrapper.open(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> options) |
java.io.InputStream |
SftpFileSystem.Wrapper.read(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.InputStream |
SftpFileSystem.Wrapper.read(java.lang.String path,
int bufferSize,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.OutputStream |
SftpFileSystem.Wrapper.write(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.OutputStream |
SftpFileSystem.Wrapper.write(java.lang.String path,
int bufferSize,
java.util.Collection<SftpClient.OpenMode> mode) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<SftpClient.OpenMode> |
SftpRemotePathChannel.modes |
static java.util.Set<SftpClient.OpenMode> |
SftpRemotePathChannel.READ_MODES |
static java.util.Set<SftpClient.OpenMode> |
SftpRemotePathChannel.WRITE_MODES |
Modifier and Type | Method and Description |
---|---|
private void |
SftpRemotePathChannel.ensureOpen(java.util.Collection<SftpClient.OpenMode> reqModes)
Checks that the channel is open and that its current mode contains at least one of the required ones
|
SftpClient.CloseableHandle |
AbstractSftpClient.open(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> options) |
java.nio.channels.FileChannel |
AbstractSftpClient.openRemoteFileChannel(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> modes) |
java.io.InputStream |
AbstractSftpClient.read(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.InputStream |
AbstractSftpClient.read(java.lang.String path,
int bufferSize,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.OutputStream |
AbstractSftpClient.write(java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
java.io.OutputStream |
AbstractSftpClient.write(java.lang.String path,
int bufferSize,
java.util.Collection<SftpClient.OpenMode> mode) |
Constructor and Description |
---|
SftpInputStreamAsync(AbstractSftpClient client,
int bufferSize,
java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
SftpOutputStreamAsync(AbstractSftpClient client,
int bufferSize,
java.lang.String path,
java.util.Collection<SftpClient.OpenMode> mode) |
SftpRemotePathChannel(java.lang.String path,
SftpClient sftp,
boolean closeOnExit,
java.util.Collection<SftpClient.OpenMode> modes) |