Package com.sshtools.client.sftp
Class SftpFileOutputStream
java.lang.Object
java.io.OutputStream
com.sshtools.client.sftp.SftpFileOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An OutputStream to write data to a remote file.
-
Constructor Summary
ConstructorsConstructorDescriptionSftpFileOutputStream(SftpFile file) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
SftpFileOutputStream
@Deprecated(since="3.1.0", forRemoval=true) public SftpFileOutputStream(SftpFile file) throws SftpStatusException, SshException Deprecated, for removal: This API element is subject to removal in a future version.Creates a new SftpFileOutputStream object.- Parameters:
file-- Throws:
SftpStatusExceptionSshException- See Also:
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
close
Closes the file's handle- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-