org.nutz.dao.util.blob
类 SimpleBlob

java.lang.Object
  继承者 org.nutz.dao.util.blob.SimpleBlob
所有已实现的接口:
java.sql.Blob

public class SimpleBlob
extends java.lang.Object
implements java.sql.Blob


构造方法摘要
SimpleBlob(java.io.File f)
           
 
方法摘要
 void free()
           
 java.io.InputStream getBinaryStream()
           
 java.io.InputStream getBinaryStream(long pos, long length)
           
 byte[] getBytes(long pos, 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)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SimpleBlob

public SimpleBlob(java.io.File f)
方法详细信息

length

public long length()
            throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 length
抛出:
java.sql.SQLException

getBytes

public byte[] getBytes(long pos,
                       int length)
                throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 getBytes
抛出:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 getBinaryStream
抛出:
java.sql.SQLException

position

public long position(byte[] pattern,
                     long start)
              throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 position
抛出:
java.sql.SQLException

position

public long position(java.sql.Blob pattern,
                     long start)
              throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 position
抛出:
java.sql.SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes)
             throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 setBytes
抛出:
java.sql.SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
             throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 setBytes
抛出:
java.sql.SQLException

setBinaryStream

public java.io.OutputStream setBinaryStream(long pos)
                                     throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 setBinaryStream
抛出:
java.sql.SQLException

truncate

public void truncate(long len)
              throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 truncate
抛出:
java.sql.SQLException

free

public void free()
          throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 free
抛出:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream(long pos,
                                           long length)
                                    throws java.sql.SQLException
指定者:
接口 java.sql.Blob 中的 getBinaryStream
抛出:
java.sql.SQLException