ariba.util.io
Class CombinedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by ariba.util.io.CombinedInputStream
All Implemented Interfaces:
java.io.Closeable

public class CombinedInputStream
extends java.io.InputStream

Is the input stream contained by stream a collection of streams one after another moving to the next one when one is exhausted.


Constructor Summary
CombinedInputStream(java.io.InputStream[] streams)
          Constructs a new instance.
CombinedInputStream(java.util.List<java.io.InputStream> streams)
          Constructs a new instance.
 
Method Summary
 int available()
          As specified in superclass.
 void close()
          Closes all the streams in this (even if an exception occurs.)

 int read()
          As specified in superclass.
 int read(byte[] bytes, int offset, int length)
          As specified in superclass.
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedInputStream

public CombinedInputStream(java.io.InputStream[] streams)
Constructs a new instance.


CombinedInputStream

public CombinedInputStream(java.util.List<java.io.InputStream> streams)
Constructs a new instance.

Method Detail

read

public int read()
         throws java.io.IOException
As specified in superclass.

Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] bytes,
                int offset,
                int length)
         throws java.io.IOException
As specified in superclass.

Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
As specified in superclass.

Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Closes all the streams in this (even if an exception occurs.)

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.