org.icepdf.core.io
Class SequenceInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.icepdf.core.io.SequenceInputStream
All Implemented Interfaces:
java.io.Closeable

public class SequenceInputStream
extends java.io.InputStream

Since:
2.0
Author:
Mark Collette

Constructor Summary
SequenceInputStream(java.io.InputStream... in)
           
SequenceInputStream(java.util.List<java.io.InputStream> inputStreams)
           
SequenceInputStream(java.util.List<java.io.InputStream> inputStreams, int streamSwitchValue)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] buffer, int off, int len)
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceInputStream

public SequenceInputStream(java.io.InputStream... in)

SequenceInputStream

public SequenceInputStream(java.util.List<java.io.InputStream> inputStreams)

SequenceInputStream

public SequenceInputStream(java.util.List<java.io.InputStream> inputStreams,
                           int streamSwitchValue)
Method Detail

available

public int available()
              throws java.io.IOException
Overrides:
available 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

read

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

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object