com.sshtools.j2ssh.sftp
Class SftpFileOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.sshtools.j2ssh.sftp.SftpFileOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class SftpFileOutputStream
extends java.io.OutputStream

Version:
$Revision: 1.17 $
Author:
$author$

Constructor Summary
SftpFileOutputStream(SftpFile file)
          Creates a new SftpFileOutputStream object.
 
Method Summary
 void close()
           
protected  void finalize()
           
 void write(byte[] buffer, int offset, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
write in class java.io.OutputStream
Parameters:
buffer -
offset -
len -
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Parameters:
b -
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

finalize

protected void finalize()
                 throws java.io.IOException
Overrides:
finalize in class java.lang.Object
Throws:
java.io.IOException


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.