com.alibaba.druid.mock
类 MockBlob

java.lang.Object
  继承者 com.alibaba.druid.mock.MockBlob
所有已实现的接口:
Blob

public class MockBlob
extends Object
implements Blob


构造方法摘要
MockBlob()
           
 
方法摘要
 void free()
           
 InputStream getBinaryStream()
           
 InputStream getBinaryStream(long pos, long length)
           
 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)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MockBlob

public MockBlob()
方法详细信息

length

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

getBytes

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

getBinaryStream

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

position

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

position

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

setBytes

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

setBytes

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

setBinaryStream

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

truncate

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

free

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

getBinaryStream

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


Copyright © 2013-2014 Alibaba Group. All Rights Reserved.