org.ozoneDB.blob
Class BLOBInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.ozoneDB.blob.BLOBInputStream
All Implemented Interfaces:
java.io.Serializable

public class BLOBInputStream
extends java.io.InputStream
implements java.io.Serializable

The output stream of ozone BLOBs. Every read operations will call the underlaying BLOBContainer. Therefore BLOBStreams should never be used without buffering/caching. This can be done by using the BLOBStream together with a BufferedStream.

Version:
$Revision: 1.3 $Date: 2002/12/29 11:15:55 $
Author:
SMB
See Also:
Serialized Form

Constructor Summary
BLOBInputStream(BLOBContainer _container)
           
 
Method Summary
 int available()
           
 void close()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
mark, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BLOBInputStream

public BLOBInputStream(BLOBContainer _container)
Method Detail

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

markSupported

public boolean markSupported()

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.