当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
ByteArrayBlob - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.jems.hibernate
Class ByteArrayBlob
java.lang.Object
org.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
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_bytes
byte[] _bytes
- .
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
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