Package com.sshtools.j2ssh.sftp
Class SftpFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.sshtools.j2ssh.sftp.SftpFileOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class SftpFileOutputStream extends java.io.OutputStream- Version:
- $Revision: 1.17 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description SftpFileOutputStream(SftpFile file)Creates a new SftpFileOutputStream object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()voidwrite(byte[] buffer, int offset, int len)voidwrite(int b)
-
-
-
Constructor Detail
-
SftpFileOutputStream
public SftpFileOutputStream(SftpFile file) throws java.io.IOException
Creates a new SftpFileOutputStream object.- Parameters:
file-- Throws:
java.io.IOException
-
-
Method Detail
-
write
public void write(byte[] buffer, int offset, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Parameters:
buffer-offset-len-- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Parameters:
b-- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.io.IOException- Overrides:
finalizein classjava.lang.Object- Throws:
java.io.IOException
-
-