org.ozoneDB.blob
Class BLOBOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.ozoneDB.blob.BLOBOutputStream
All Implemented Interfaces:
java.io.Serializable

public class BLOBOutputStream
extends java.io.OutputStream
implements java.io.Serializable

The output stream of ozone BLOBs. Every write 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
BLOBOutputStream(BLOBContainer _container)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BLOBOutputStream

public BLOBOutputStream(BLOBContainer _container)
Method Detail

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

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

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           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.