jist.swans.app.io
Class FilterInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by jist.swans.app.io.InputStream
          extended by jist.swans.app.io.FilterInputStream
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
BufferedInputStream

public class FilterInputStream
extends InputStream

A functionally identical port of java.io.FilterInputStream, primarily brought into jist.swans.app.io package so that it could be dynamically rewritten.

Since:
SWANS1.0
Version:
$Id: FilterInputStream.java,v 1.3 2004/04/06 16:07:46 barr Exp $
Author:
Sun Microsystems, Rimon Barr <barr+jist@cs.cornell.edu>

Field Summary
protected  InputStream in
           
 
Constructor Summary
protected FilterInputStream(InputStream in)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected InputStream in
See Also:
FilterInputStream
Constructor Detail

FilterInputStream

protected FilterInputStream(InputStream in)
See Also:
FilterInputStream
Method Detail

read

public int read()
         throws java.io.IOException,
                JistAPI.Continuation
Specified by:
read in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

read

public int read(byte[] b)
         throws java.io.IOException,
                JistAPI.Continuation
Overrides:
read in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException,
                JistAPI.Continuation
Overrides:
read in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

skip

public long skip(long n)
          throws java.io.IOException,
                 JistAPI.Continuation
Overrides:
skip in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

available

public int available()
              throws java.io.IOException,
                     JistAPI.Continuation
Overrides:
available in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

close

public void close()
           throws java.io.IOException,
                  JistAPI.Continuation
Specified by:
close in interface java.io.Closeable
Overrides:
close in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

mark

public void mark(int readlimit)
          throws JistAPI.Continuation
Overrides:
mark in class InputStream
Throws:
JistAPI.Continuation
See Also:
FilterInputStream

reset

public void reset()
           throws java.io.IOException,
                  JistAPI.Continuation
Overrides:
reset in class InputStream
Throws:
java.io.IOException
JistAPI.Continuation
See Also:
FilterInputStream

markSupported

public boolean markSupported()
                      throws JistAPI.Continuation
Overrides:
markSupported in class InputStream
Throws:
JistAPI.Continuation
See Also:
FilterInputStream