org.seasar.extension.jdbc.dialect
クラス PostgreDialect.BlobImpl

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.dialect.PostgreDialect.BlobImpl
すべての実装されたインタフェース:
Blob
含まれているクラス:
PostgreDialect

public static class PostgreDialect.BlobImpl
extends Object
implements Blob

Blobの簡易実装クラスです。

作成者:
koichik

フィールドの概要
protected  byte[] bytes
          バイト列
 
コンストラクタの概要
PostgreDialect.BlobImpl(byte[] bytes)
          インスタンスを構築します。
 
メソッドの概要
 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)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

bytes

protected byte[] bytes
バイト列

コンストラクタの詳細

PostgreDialect.BlobImpl

public PostgreDialect.BlobImpl(byte[] bytes)
インスタンスを構築します。

パラメータ:
bytes - バイト列
メソッドの詳細

getBinaryStream

public InputStream getBinaryStream()
                            throws SQLException
定義:
インタフェース Blob 内の getBinaryStream
例外:
SQLException

getBytes

public byte[] getBytes(long pos,
                       int length)
                throws SQLException
定義:
インタフェース Blob 内の getBytes
例外:
SQLException

length

public long length()
            throws SQLException
定義:
インタフェース Blob 内の length
例外:
SQLException

position

public long position(Blob pattern,
                     long start)
              throws SQLException
定義:
インタフェース Blob 内の position
例外:
SQLException

position

public long position(byte[] pattern,
                     long start)
              throws SQLException
定義:
インタフェース Blob 内の position
例外:
SQLException

setBinaryStream

public OutputStream setBinaryStream(long pos)
                             throws SQLException
定義:
インタフェース Blob 内の setBinaryStream
例外:
SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
             throws SQLException
定義:
インタフェース Blob 内の setBytes
例外:
SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes)
             throws SQLException
定義:
インタフェース Blob 内の setBytes
例外:
SQLException

truncate

public void truncate(long len)
              throws SQLException
定義:
インタフェース Blob 内の truncate
例外:
SQLException


Copyright © 2004-2009 The Seasar Foundation. All Rights Reserved.