com.armatiek.infofuze.stream
Class ThreadedPipedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.armatiek.infofuze.stream.ThreadedPipedInputStream
All Implemented Interfaces:
java.io.Closeable

public abstract class ThreadedPipedInputStream
extends java.io.InputStream

Author:
Maarten Kroon

Constructor Summary
ThreadedPipedInputStream(java.io.InputStream is)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] cbuf, int off, int len)
           
abstract  void transformStream(java.io.InputStream is, java.io.OutputStream os)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedPipedInputStream

public ThreadedPipedInputStream(java.io.InputStream is)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

transformStream

public abstract void transformStream(java.io.InputStream is,
                                     java.io.OutputStream os)
                              throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

read

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

read

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