public class SftpOutputStreamAsync extends OutputStreamWithChannel implements SftpClientHolder
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bb |
protected 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) |
write
protected final org.slf4j.Logger log
protected final byte[] bb
protected final int bufferSize
protected 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
IOException
public SftpOutputStreamAsync(AbstractSftpClient client, int bufferSize, String path, SftpClient.CloseableHandle handle) throws IOException
IOException
public final AbstractSftpClient getClient()
getClient
in interface SftpClientHolder
public void setOffset(long offset)
public final String getPath()
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class OutputStream
IOException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.