Package de.intarsys.tools.stream
Class ConcatInputStream
- java.lang.Object
-
- java.io.InputStream
-
- de.intarsys.tools.stream.ConcatInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ConcatInputStream extends java.io.InputStream
A stream that reads from all its inputs until all are empty.
-
-
Constructor Summary
Constructors Constructor Description ConcatInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInput(java.io.InputStream input)
void
close()
int
read()
-
-
-
Method Detail
-
addInput
public void addInput(java.io.InputStream input)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-