com.sshtools.j2ssh.subsystem
Class SubsystemOutputStream

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

public class SubsystemOutputStream
extends java.io.OutputStream

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
(package private)  java.io.ByteArrayOutputStream buffer
           
(package private)  int messageStart
           
(package private)  SubsystemMessageStore messageStore
           
 
Constructor Summary
SubsystemOutputStream(SubsystemMessageStore messageStore)
          Creates a new SubsystemOutputStream object.
 
Method Summary
private  void processMessage()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

java.io.ByteArrayOutputStream buffer

messageStore

SubsystemMessageStore messageStore

messageStart

int messageStart
Constructor Detail

SubsystemOutputStream

public SubsystemOutputStream(SubsystemMessageStore messageStore)
Creates a new SubsystemOutputStream object.

Parameters:
messageStore -
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Parameters:
b -
off -
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

processMessage

private void processMessage()
                     throws java.io.IOException
Throws:
java.io.IOException