intarsys runtime library

de.intarsys.tools.stream
Class ConcatInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by de.intarsys.tools.stream.ConcatInputStream
All Implemented Interfaces:
Closeable

public class ConcatInputStream
extends InputStream

A stream that reads from all its inputs until all are empty.


Constructor Summary
ConcatInputStream()
           
 
Method Summary
 void addInput(InputStream input)
           
 void close()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcatInputStream

public ConcatInputStream()
Method Detail

addInput

public void addInput(InputStream input)

close

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

read

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

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.