com.basho.riak.client.util
Class BranchableInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.basho.riak.client.util.BranchableInputStream
All Implemented Interfaces:
Closeable

Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.util.BranchableInputStream instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
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 farthest advanced branch.

Author:
jlee
See Also:
BranchableInputStream

Constructor Summary
BranchableInputStream(InputStream in)
          Deprecated.  
BranchableInputStream(InputStream in, int initialBufferSize)
          Deprecated.  
 
Method Summary
 InputStream branch()
          Deprecated.  
 void close()
          Deprecated.  
 int peek()
          Deprecated.  
 int read()
          Deprecated.  
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchableInputStream

public BranchableInputStream(InputStream in)
Deprecated. 

BranchableInputStream

public BranchableInputStream(InputStream in,
                             int initialBufferSize)
Deprecated. 
Method Detail

read

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

close

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

peek

public int peek()
         throws IOException
Deprecated. 
Throws:
IOException

branch

public InputStream branch()
Deprecated. 


Copyright © 2012. All Rights Reserved.