ch.ethz.ssh2
Class SFTPOutputStream
java.lang.Object
java.io.OutputStream
ch.ethz.ssh2.SFTPOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class SFTPOutputStream
- extends OutputStream
- Version:
- $Id:$
|
Method Summary |
void |
close()
|
long |
skip(long n)
|
void |
write(byte[] buffer,
int offset,
int len)
Writes len bytes from the specified byte array
starting at offset off to this output stream. |
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SFTPOutputStream
public SFTPOutputStream(SFTPv3FileHandle handle)
write
public void write(byte[] buffer,
int offset,
int len)
throws IOException
- Writes
len bytes from the specified byte array
starting at offset off to this output stream.
The general contract for write(b, off, len) is that
some of the bytes in the array b are written to the
output stream in order; element b[off] is the first
byte written and b[off+len-1] is the last byte written
by this operation.
- Overrides:
write in class OutputStream
- Throws:
IOException- See Also:
SFTPv3Client.write(SFTPv3FileHandle,long,byte[],int,int)
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
skip
public long skip(long n)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException
Copyright © 2011. All Rights Reserved.