org.apache.commons.ssl
Class ComboInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.commons.ssl.ComboInputStream
All Implemented Interfaces:
Closeable

public class ComboInputStream
extends InputStream

Since:
22-Feb-2007
Author:
Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com

Field Summary
private  InputStream head
           
private  boolean headDone
           
private  InputStream tail
           
 
Constructor Summary
ComboInputStream(InputStream head, InputStream tail)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
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, toString, wait, wait, wait
 

Field Detail

headDone

private boolean headDone

head

private InputStream head

tail

private InputStream tail
Constructor Detail

ComboInputStream

public ComboInputStream(InputStream head,
                        InputStream tail)
Method Detail

read

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

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