edu.nyu.cs.pdsg.switchboard
Class SbPipedInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.PipedInputStream
          extended byedu.nyu.cs.pdsg.switchboard.SbPipedInputStream

public class SbPipedInputStream
extends java.io.PipedInputStream


Field Summary
(package private)  boolean amClosed
           
(package private)  SbLayer layer
           
(package private)  SbPipedOutputStream ostream
           
 
Fields inherited from class java.io.PipedInputStream
buffer, in, out, PIPE_SIZE
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
SbPipedInputStream(SbLayer _layer)
           
SbPipedInputStream(SbPipedOutputStream s, SbLayer _layer)
           
 
Method Summary
(package private)  void checkClose()
           
 void close()
           
 void connect(SbPipedOutputStream s)
           
 int read()
           
 int read(byte[] buf)
           
 int read(byte[] buf, int bias, int limit)
           
 
Methods inherited from class java.io.PipedInputStream
available, connect, receive
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amClosed

boolean amClosed

ostream

SbPipedOutputStream ostream

layer

SbLayer layer
Constructor Detail

SbPipedInputStream

public SbPipedInputStream(SbPipedOutputStream s,
                          SbLayer _layer)
                   throws java.io.IOException

SbPipedInputStream

public SbPipedInputStream(SbLayer _layer)
                   throws java.io.IOException
Method Detail

connect

public void connect(SbPipedOutputStream s)
             throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] buf,
                int bias,
                int limit)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] buf)
         throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

checkClose

void checkClose()
          throws java.io.IOException
Throws:
java.io.IOException


Copyright (c) 2002-2003 New York University RLAB