iaik.utils
Class NotifyEOFInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--iaik.utils.NotifyEOFInputStream

public class NotifyEOFInputStream
extends java.io.FilterInputStream

This is an ordinary InputStream which notifies all listeners when the end of a stream has been reached.


Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
NotifyEOFInputStream(java.io.InputStream is)
           
 
Method Summary
 void addEOFListener(EOFListener listener)
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifyEOFInputStream

public NotifyEOFInputStream(java.io.InputStream is)
Method Detail

addEOFListener

public void addEOFListener(EOFListener listener)

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream