org.apache.jackrabbit.oak.spi.blob
Class BlobStoreInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.jackrabbit.oak.spi.blob.BlobStoreInputStream
All Implemented Interfaces:
Closeable

public class BlobStoreInputStream
extends InputStream

An input stream to simplify reading from a store. See also MicroKernelInputStream.


Constructor Summary
BlobStoreInputStream(BlobStore store, String id, long pos)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
static byte[] readFully(BlobStore store, String id)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobStoreInputStream

public BlobStoreInputStream(BlobStore store,
                            String id,
                            long pos)
Method Detail

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

read

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

readFully

public static byte[] readFully(BlobStore store,
                               String id)
                        throws IOException
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.