wt.pds
Class LobInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bywt.pds.LobInputStream

public final class LobInputStream
extends InputStream

This class provides an InputStream implementation for reading data from a Blob reference.


Field Summary
private  long available
           
private  Object blob
           
private  byte[] buf
           
private  int count
           
private  DBMSLobHandler lobHandler
           
private  long offset
           
private  int pos
           
private static String RESOURCE
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
LobInputStream(DBMSLobHandler a_lobHandler, Object a_blob, long a_length, int a_bufSize)
           
 
Method Summary
 int available()
           
 void close()
           
private  void fill()
           
private  int getBytes(byte[] buf, int off, int len)
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

lobHandler

private DBMSLobHandler lobHandler

blob

private Object blob

available

private long available

offset

private long offset

buf

private byte[] buf

count

private int count

pos

private int pos
Constructor Detail

LobInputStream

public LobInputStream(DBMSLobHandler a_lobHandler,
                      Object a_blob,
                      long a_length,
                      int a_bufSize)
Method Detail

read

public int read()
         throws IOException
Throws:
IOException

read

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

skip

public long skip(long n)
          throws IOException
Throws:
IOException

available

public int available()
              throws IOException
Throws:
IOException

close

public void close()

mark

public void mark(int readlimit)

reset

public void reset()
           throws IOException
Throws:
IOException

markSupported

public boolean markSupported()

getBytes

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

fill

private void fill()
           throws IOException
Throws:
IOException