| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final byte[] | |
| protected Buffer | |
| private final Buffer[] | |
| protected final int | |
| private final AbstractSftpClient | |
| protected SftpClient. | |
| private final byte[] | |
| private SftpMessage | |
| protected final Logger | |
| private int | |
| protected long | |
| private final boolean | |
| private final int | |
| private final String | |
| protected final Deque | |
| private final int | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | SftpOutputStreamAsync(AbstractSftpClient
AbstractSftpClient to use for writing dataSFTP packet length to use. Most servers have a limit of 256kB. If zero, the stream picks a
size such that each SFTP packet fits into a single SSH packet, i.e., roughly 32kB. bufferSize, String remote path to write to path, Collection<SftpClient.OpenModes for opening the file.Creates a new stream to write data to a remote file. |
| public | SftpOutputStreamAsync(AbstractSftpClient
AbstractSftpClient to use for writing dataSFTP packet length to use. Most servers have a limit of 256kB. If zero, the stream picks a size
such that each SFTP packet fits into a single SSH packet, i.e., roughly 32kB. bufferSize, String path, SftpClient.CloseableHandle of the remote file to write to; will be closed when this output stream
is closedCreates a new stream to write data to a remote file. |
| public | SftpOutputStreamAsync(AbstractSftpClient
AbstractSftpClient to use for writing dataSFTP packet length to use. Most servers have a limit of 256kB. If zero, the stream picks a
size such that each SFTP packet fits into a single SSH packet, i.e., roughly 32kB. bufferSize, String path, SftpClient.CloseableHandle of the remote file to write towhether to close the closeHandle)handle when this output stream is closedCreates a new stream to write data to a remote file. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Overrides java. Implements java. Closes this channel. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private Buffer | |
| public final AbstractSftpClient | |
| public final String | |
| private void | |
| private long | |
| public boolean | |
| public void | |
| public String | |
| public long | |
| public long | |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| bb | back to summary |
|---|---|
| protected final byte[] bb | |
| buffer | back to summary |
|---|---|
| protected Buffer buffer | |
| bufferPool | back to summary |
|---|---|
| private final Buffer[] bufferPool | |
| bufferSize | back to summary |
|---|---|
| protected final int bufferSize | |
| clientInstance | back to summary |
|---|---|
| private final AbstractSftpClient clientInstance | |
| handle | back to summary |
|---|---|
| protected SftpClient. | |
| handleId | back to summary |
|---|---|
| private final byte[] handleId | |
| lastMsg | back to summary |
|---|---|
| private SftpMessage lastMsg | |
| log | back to summary |
|---|---|
| protected final Logger log | |
| nextBuffer | back to summary |
|---|---|
| private int nextBuffer | |
| offset | back to summary |
|---|---|
| protected long offset | |
| ownsHandle | back to summary |
|---|---|
| private final boolean ownsHandle | |
| packetSize | back to summary |
|---|---|
| private final int packetSize | |
| path | back to summary |
|---|---|
| private final String path | |
| pendingAcks | back to summary |
|---|---|
| protected final Deque<SftpAckData> pendingAcks | |
| sftpPreamble | back to summary |
|---|---|
| private final int sftpPreamble | |
| usePacket | back to summary |
|---|---|
| private final boolean usePacket | |
| SftpOutputStreamAsync | back to summary |
|---|---|
| public SftpOutputStreamAsync(AbstractSftpClient client, int bufferSize, String path, Collection<SftpClient. Creates a new stream to write data to a remote file.
| |
| SftpOutputStreamAsync | back to summary |
|---|---|
| public SftpOutputStreamAsync(AbstractSftpClient client, int bufferSize, String path, SftpClient. Creates a new stream to write data to a remote file.
| |
| SftpOutputStreamAsync | back to summary |
|---|---|
| public SftpOutputStreamAsync(AbstractSftpClient client, int bufferSize, String path, SftpClient. Creates a new stream to write data to a remote file.
| |
| checkStatus | back to summary |
|---|---|
| private void checkStatus(AbstractSftpClient client, Buffer buf) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| getBuffer | back to summary |
|---|---|
| private Buffer getBuffer(Session session) | |
| getClient | back to summary |
|---|---|
| public final AbstractSftpClient getClient() Implements org.
| |
| getPath | back to summary |
|---|---|
| public final String getPath() The remotely accessed file path
| |
| internalFlush | back to summary |
|---|---|
| private void internalFlush() throws IOException | |
| internalTransfer | back to summary |
|---|---|
| private long internalTransfer(SftpOutputStreamAsync. | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| setOffset | back to summary |
|---|---|
| public void setOffset(long offset) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(InputStream stream) throws IOException | |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(ReadableByteChannel stream, long count) throws IOException | |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| read | back to summary |
|---|---|
| public int read(byte[] buffer, int offset, int length) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ReadableByteChannel | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | read(byte[] buffer, int offset, int length)
Implements org.
|
| src | back to summary |
|---|---|
| private final ReadableByteChannel src | |
| stillToRead | back to summary |
|---|---|
| private long stillToRead | |
| ChannelReader | back to summary |
|---|---|
| pack-priv ChannelReader(ReadableByteChannel src, long toRead) | |
| read | back to summary |
|---|---|
| public int read(byte[] buffer, int offset, int length) throws IOException Implements org.
| |