org.apache.axis2.jaxws.context.listener
Class CompositeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.axis2.jaxws.context.listener.CompositeInputStream
All Implemented Interfaces:
Closeable

public class CompositeInputStream
extends InputStream

CompositeInputStream has ability to store multiple inputStreams in a LinkList and perform various input stream operaitons on these inputStream in a serialized manner or first in first read model.


Constructor Summary
CompositeInputStream()
           
CompositeInputStream(InputStream is)
           
CompositeInputStream(InputStream[] isArray)
           
 
Method Summary
 void append(InputStream is)
           
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeInputStream

public CompositeInputStream()

CompositeInputStream

public CompositeInputStream(InputStream is)

CompositeInputStream

public CompositeInputStream(InputStream[] isArray)
Method Detail

read

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

append

public void append(InputStream is)

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

close

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

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.