public class SftpOutputStreamAsync extends org.apache.sshd.common.util.io.OutputStreamWithChannel implements SftpClientHolder
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bb |
protected org.apache.sshd.common.util.buffer.Buffer |
buffer |
protected int |
bufferSize |
protected SftpClient.CloseableHandle |
handle |
protected org.slf4j.Logger |
log |
protected long |
offset |
protected Deque<SftpAckData> |
pendingWrites |
| Constructor and Description |
|---|
SftpOutputStreamAsync(AbstractSftpClient client,
int bufferSize,
String path,
Collection<SftpClient.OpenMode> mode) |
SftpOutputStreamAsync(AbstractSftpClient client,
int bufferSize,
String path,
SftpClient.CloseableHandle handle) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
AbstractSftpClient |
getClient() |
String |
getPath()
The remotely accessed file path
|
boolean |
isOpen() |
void |
setOffset(long offset) |
String |
toString() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writeprotected final org.slf4j.Logger log
protected final byte[] bb
protected final int bufferSize
protected org.apache.sshd.common.util.buffer.Buffer buffer
protected SftpClient.CloseableHandle handle
protected long offset
protected final Deque<SftpAckData> pendingWrites
public SftpOutputStreamAsync(AbstractSftpClient client, int bufferSize, String path, Collection<SftpClient.OpenMode> mode) throws IOException
IOExceptionpublic SftpOutputStreamAsync(AbstractSftpClient client, int bufferSize, String path, SftpClient.CloseableHandle handle) throws IOException
IOExceptionpublic final AbstractSftpClient getClient()
getClient in interface SftpClientHolderpublic void setOffset(long offset)
public final String getPath()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class OutputStreamIOExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.