org.apache.geronimo.gshell.whisper.stream
Class SessionInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.geronimo.gshell.whisper.stream.SessionInputStream
All Implemented Interfaces:
Closeable

public class SessionInputStream
extends InputStream

An InputStream that buffers data read from StreamMessage messages.

Version:
$Rev: 578566 $ $Date: 2007-09-23 05:02:46 -0700 (Sun, 23 Sep 2007) $

Field Summary
static SessionAttributeBinder<SessionInputStream> BINDER
           
 
Constructor Summary
SessionInputStream()
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void throwException(IOException e)
           
 String toString()
           
 void write(StreamMessage msg)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BINDER

public static final SessionAttributeBinder<SessionInputStream> BINDER
Constructor Detail

SessionInputStream

public SessionInputStream()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

available

public int available()
Overrides:
available in class InputStream

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class InputStream

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

write

public void write(StreamMessage msg)

throwException

public void throwException(IOException e)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.