public class InputStreamChain extends InputStream
InputStream
implementation that allows chaining of various streams for seamless
sequential readingConstructor 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, read
public 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 InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void mark(int i)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long l) throws IOException
skip
in class InputStream
IOException
Copyright © 2009-2013 jclouds. All Rights Reserved.