wt.pds
Class LobOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended bywt.pds.LobOutputStream

public final class LobOutputStream
extends OutputStream

This class provides an OutputStream implementation for writing data to a Blob reference.


Field Summary
private  Object blob
           
private  byte[] buf
           
private  WTConnection connection
           
private  int count
           
private  ChunkLobHandler lobHandler
           
private  long offset
           
 
Constructor Summary
LobOutputStream(ChunkLobHandler a_lobHandler, WTConnection a_connection, Object a_blob, int a_bufSize)
           
 
Method Summary
 void close()
           
 void flush()
           
(package private)  void flushBuffer()
           
(package private)  long getLength()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
private  void writeBytes(byte[] buf, int off, int len)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lobHandler

private ChunkLobHandler lobHandler

connection

private WTConnection connection

blob

private Object blob

offset

private long offset

buf

private byte[] buf

count

private int count
Constructor Detail

LobOutputStream

public LobOutputStream(ChunkLobHandler a_lobHandler,
                       WTConnection a_connection,
                       Object a_blob,
                       int a_bufSize)
Method Detail

write

public void write(int b)
           throws IOException
Throws:
IOException

write

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

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

writeBytes

private void writeBytes(byte[] buf,
                        int off,
                        int len)
                 throws IOException
Throws:
IOException

flushBuffer

void flushBuffer()
           throws IOException
Throws:
IOException

getLength

long getLength()