com.sshtools.j2ssh.subsystem
Class SubsystemInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sshtools.j2ssh.subsystem.SubsystemInputStream
All Implemented Interfaces:
java.io.Closeable

public class SubsystemInputStream
extends java.io.InputStream

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

Field Summary
(package private)  int currentPos
           
private  SubsystemMessageStore messageStore
           
(package private)  byte[] msgdata
           
 
Constructor Summary
SubsystemInputStream(SubsystemMessageStore messageStore)
          Creates a new SubsystemInputStream object.
 
Method Summary
 int available()
           
private  void collectNextMessage()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgdata

byte[] msgdata

currentPos

int currentPos

messageStore

private SubsystemMessageStore messageStore
Constructor Detail

SubsystemInputStream

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

Parameters:
messageStore -
Method Detail

available

public int available()
Overrides:
available in class java.io.InputStream
Returns:

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Returns:
Throws:
java.io.IOException

collectNextMessage

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