com.basho.riak.client.http.util
Class BranchableInputStream
java.lang.Object
java.io.InputStream
com.basho.riak.client.http.util.BranchableInputStream
- All Implemented Interfaces:
- Closeable
public class BranchableInputStream
- extends InputStream
An input stream that can be branched into other InputStreams, each
maintaining its own location, with the main read() method always returning
bytes from the furthest advanced branch.
- Author:
- jlee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BranchableInputStream
public BranchableInputStream(InputStream in)
BranchableInputStream
public BranchableInputStream(InputStream in,
int initialBufferSize)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
peek
public int peek()
throws IOException
- Throws:
IOException
branch
public InputStream branch()
Copyright © 2012. All Rights Reserved.