public class InputStreamChain extends InputStream
InputStream implementation that allows chaining of various streams for seamless
sequential reading| Constructor and Description |
|---|
InputStreamChain(InputStream... inputStreams) |
| Modifier and Type | Method and Description |
|---|---|
InputStreamChain |
addAsInputStream(String value)
Adds a String to the end of chain
|
InputStreamChain |
addInputStream(InputStream stream)
Adds input stream to the end of chain
|
int |
available() |
void |
close() |
void |
mark(int i) |
boolean |
markSupported() |
int |
read() |
void |
reset() |
long |
skip(long l) |
read, readpublic InputStreamChain(InputStream... inputStreams)
public InputStreamChain addInputStream(InputStream stream)
stream - InputStream to add to chainpublic InputStreamChain addAsInputStream(String value)
value - String to add to the chainpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int i)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long l)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2009-2013 jclouds. All Rights Reserved.