com.jscape.inet.ssh.connection.channels
Class Channel.DataOutputStream
java.lang.Object
java.io.OutputStream
com.jscape.inet.ssh.connection.channels.Channel.DataOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
- Enclosing class:
- Channel
public final class Channel.DataOutputStream
- extends java.io.OutputStream
The channel output stream.
- Version:
- 1.0
- Author:
- Alex
Constructor Summary |
Channel.DataOutputStream(long windowSize,
long packetSize)
Creates channel output stream giving corresponded attributes. |
Method Summary |
void |
adjustWindow(long size)
Adjusts the outgoing window size. |
void |
close()
Closes the current stream. |
void |
flush()
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Channel.DataOutputStream
public Channel.DataOutputStream(long windowSize,
long packetSize)
- Creates channel output stream giving corresponded attributes.
- Parameters:
windowSize
- inital outgoing window size.packetSize
- max outgoing packet size.
close
public void close()
- Closes the current stream.
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
adjustWindow
public void adjustWindow(long size)
- Adjusts the outgoing window size.
- Parameters:
size
- the bytes to add to window
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved