BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.jdbc.oci
Class Blob

java.lang.Object
  |
  +--weblogic.jdbc.oci.Blob

public final class Blob
extends java.lang.Object
implements java.sql.Blob, weblogic.jdbc.common.OracleLobCloser, weblogic.jdbc.common.OracleBlob

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
Blob(weblogic.db.oci.OciCursor cur, int pos, weblogic.db.oci.OciValue value)
           
 
Method Summary
 java.io.InputStream getBinaryStream()
           
 byte[] getBytes(long position, int length)
           
 long length()
           
 long position(java.sql.Blob pattern, long start)
           
 long position(byte[] pattern, long start)
           
 java.io.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

Blob

public Blob(weblogic.db.oci.OciCursor cur,
            int pos,
            weblogic.db.oci.OciValue value)
     throws java.sql.SQLException
Method Detail

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
Specified by:
getBinaryStream in interface java.sql.Blob


getBytes

public byte[] getBytes(long position,
                       int length)
                throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.Blob


length

public long length()
            throws java.sql.SQLException
Specified by:
length in interface java.sql.Blob


position

public long position(java.sql.Blob pattern,
                     long start)
              throws java.sql.SQLException
Specified by:
position in interface java.sql.Blob


position

public long position(byte[] pattern,
                     long start)
              throws java.sql.SQLException
Specified by:
position in interface java.sql.Blob


setBinaryStream

public java.io.OutputStream setBinaryStream(long pos)
                                     throws java.sql.SQLException
Specified by:
setBinaryStream in interface java.sql.Blob


truncate

public void truncate(long len)
              throws java.sql.SQLException
Specified by:
truncate in interface java.sql.Blob


setBytes

public int setBytes(long pos,
                    byte[] bytes)
             throws java.sql.SQLException
Specified by:
setBytes in interface java.sql.Blob


setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
             throws java.sql.SQLException
Specified by:
setBytes in interface java.sql.Blob


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b