org.sourceforge.bdbadapter
Class BDBOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--org.sourceforge.bdbadapter.BDBOutputStream

public class BDBOutputStream
extends java.io.OutputStream


Field Summary
private  com.sleepycat.db.Db db
           
private  com.sleepycat.db.DbException dbException
           
private  com.sleepycat.db.Dbt dbt
           
private  com.sleepycat.db.DbEnv env
           
private  com.sleepycat.db.Dbt key
           
private  byte[] onebyte
           
private  int position
           
private  com.sleepycat.db.DbTxn txn
           
 
Constructor Summary
BDBOutputStream(com.sleepycat.db.DbEnv env, com.sleepycat.db.DbTxn txn, com.sleepycat.db.Db db, com.sleepycat.db.Dbt key)
           
 
Method Summary
private  void checkClosed()
           
 void close()
           
 void flush()
           
 com.sleepycat.db.DbException getDbException()
           
private  void put()
           
 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, registerNatives, toString, wait, wait, wait
 

Field Detail

txn

private com.sleepycat.db.DbTxn txn

db

private com.sleepycat.db.Db db

key

private com.sleepycat.db.Dbt key

dbt

private com.sleepycat.db.Dbt dbt

onebyte

private byte[] onebyte

position

private int position

dbException

private com.sleepycat.db.DbException dbException

env

private com.sleepycat.db.DbEnv env
Constructor Detail

BDBOutputStream

public BDBOutputStream(com.sleepycat.db.DbEnv env,
                       com.sleepycat.db.DbTxn txn,
                       com.sleepycat.db.Db db,
                       com.sleepycat.db.Dbt key)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream

put

private void put()
          throws java.io.IOException

checkClosed

private void checkClosed()
                  throws java.lang.IllegalStateException

getDbException

public com.sleepycat.db.DbException getDbException()