com.ibm.jtopenlite.database.jdbc
Class JDBCBlob

java.lang.Object
  extended by com.ibm.jtopenlite.database.jdbc.JDBCBlob
All Implemented Interfaces:
Blob

public class JDBCBlob
extends Object
implements Blob


Constructor Summary
JDBCBlob(byte[] data, int offset, int len)
           
 
Method Summary
 InputStream getBinaryStream()
           
 byte[] getBytes(long pos, int length)
           
 long length()
           
 long position(Blob pattern, long start)
           
 long position(byte[] pattern, long start)
           
 OutputStream setBinaryStream(long pos)
           
 int setBytes(long pos, byte[] bytes)
           
 int setBytes(long pos, byte[] bytes, int offset, int len)
           
 void truncate(long len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCBlob

public JDBCBlob(byte[] data,
                int offset,
                int len)
Method Detail

getBinaryStream

public InputStream getBinaryStream()
                            throws SQLException
Throws:
SQLException

getBytes

public byte[] getBytes(long pos,
                       int length)
                throws SQLException
Throws:
SQLException

length

public long length()
            throws SQLException
Throws:
SQLException

position

public long position(Blob pattern,
                     long start)
              throws SQLException
Throws:
SQLException

position

public long position(byte[] pattern,
                     long start)
              throws SQLException
Throws:
SQLException

setBinaryStream

public OutputStream setBinaryStream(long pos)
                             throws SQLException
Throws:
SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes)
             throws SQLException
Throws:
SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
             throws SQLException
Throws:
SQLException

truncate

public void truncate(long len)
              throws SQLException
Throws:
SQLException