站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ByteArrayBlob - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.jems.hibernate
Class ByteArrayBlob

java.lang.Object
  extended byorg.jboss.portal.jems.hibernate.ByteArrayBlob
All Implemented Interfaces:
java.sql.Blob

public final class ByteArrayBlob
extends java.lang.Object
implements java.sql.Blob

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
(package private)  byte[] _bytes
          .
 
Constructor Summary
ByteArrayBlob(java.sql.Blob blob)
           
ByteArrayBlob(byte[] _bytes)
           
ByteArrayBlob(ByteArrayBlob that)
           
ByteArrayBlob(java.io.InputStream in)
           
 
Method Summary
static ByteArrayBlob create(java.sql.Blob blob)
           
static ByteArrayBlob get(java.sql.Blob blob)
           
 java.io.InputStream getBinaryStream()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_bytes

byte[] _bytes
.

Constructor Detail

ByteArrayBlob

public ByteArrayBlob(java.io.InputStream in)
              throws java.io.IOException

ByteArrayBlob

public ByteArrayBlob(ByteArrayBlob that)

ByteArrayBlob

public ByteArrayBlob(byte[] _bytes)

ByteArrayBlob

public ByteArrayBlob(java.sql.Blob blob)
              throws java.sql.SQLException
Method Detail

length

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

getBytes

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

getBinaryStream

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

setBytes

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

setBytes

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

setBinaryStream

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

position

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

position

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

truncate

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

get

public static ByteArrayBlob get(java.sql.Blob blob)
                         throws java.io.IOException,
                                java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

create

public static ByteArrayBlob create(java.sql.Blob blob)
                            throws java.io.IOException,
                                   java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException