org.apache.jackrabbit.mk.util
Class MicroKernelInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.jackrabbit.mk.util.MicroKernelInputStream
All Implemented Interfaces:
Closeable

public class MicroKernelInputStream
extends InputStream

An input stream to simplify reading a blob from the micro kernel. See also BlobStoreInputStream.


Constructor Summary
MicroKernelInputStream(MicroKernel mk, String id)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
static byte[] readFully(MicroKernel mk, 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

MicroKernelInputStream

public MicroKernelInputStream(MicroKernel mk,
                              String id)
Method Detail

read

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

read

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

readFully

public static byte[] readFully(MicroKernel mk,
                               String id)
                        throws IOException
Throws:
IOException


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