org.hsqldb.jdbc
Class jdbcBlob
java.lang.Object
org.hsqldb.jdbc.jdbcBlob
- All Implemented Interfaces:
- Blob
- public class jdbcBlob
- extends Object
- implements Blob
- Since:
- 1.7.2
- Version:
- 1.7.2
- Author:
- james house jhouse@part.net
Constructor Summary |
jdbcBlob(byte[] data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdbcBlob
public jdbcBlob(byte[] data)
getBinaryStream
public InputStream getBinaryStream()
throws SQLException
- Returns blob data as a stream
- Specified by:
getBinaryStream
in interface Blob
- Throws:
SQLException
getBytes
public byte[] getBytes(long pos,
int length)
throws SQLException
- Returns blob data as an array of bytes
- Specified by:
getBytes
in interface Blob
- Throws:
SQLException
length
public long length()
throws SQLException
- Returns the length of the blob data
- Specified by:
length
in interface Blob
- Throws:
SQLException
position
public long position(Blob pattern,
long start)
throws SQLException
- Specified by:
position
in interface Blob
- Throws:
SQLException
position
public long position(byte[] pattern,
long start)
throws SQLException
- Specified by:
position
in interface Blob
- Throws:
SQLException
setBytes
public int setBytes(long pos,
byte[] bytes)
throws SQLException
- Specified by:
setBytes
in interface Blob
- Throws:
SQLException
setBytes
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws SQLException
- Specified by:
setBytes
in interface Blob
- Throws:
SQLException
setBinaryStream
public OutputStream setBinaryStream(long pos)
throws SQLException
- Specified by:
setBinaryStream
in interface Blob
- Throws:
SQLException
truncate
public void truncate(long len)
throws SQLException
- Specified by:
truncate
in interface Blob
- Throws:
SQLException
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.