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 com.sshtools.common.sftp.SftpStatusException, com.sshtools.common.ssh.SshException Deprecated, for removal: This API element is subject to removal in a future version.Creates a new SftpFileOutputStream object.- Parameters:
file
-- Throws:
com.sshtools.common.sftp.SftpStatusException
com.sshtools.common.ssh.SshException
- See Also:
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
close
Closes the file's handle- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-