com.liferay.portal.kernel.dao.jdbc
Class OutputBlob
java.lang.Object
com.liferay.portal.kernel.dao.jdbc.OutputBlob
- All Implemented Interfaces:
- java.sql.Blob
public class OutputBlob
- extends java.lang.Object
- implements java.sql.Blob
- Author:
- Shuyang Zhou
|
Constructor Summary |
OutputBlob(java.io.InputStream inputStream,
long length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputBlob
public OutputBlob(java.io.InputStream inputStream,
long length)
free
public void free()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBinaryStream
public java.io.InputStream getBinaryStream()
- Specified by:
getBinaryStream in interface java.sql.Blob
getBinaryStream
public java.io.InputStream getBinaryStream(long pos,
long length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBytes
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
- Specified by:
getBytes in interface java.sql.Blob
- Throws:
java.sql.SQLException
length
public long length()
- Specified by:
length in interface java.sql.Blob
position
public long position(java.sql.Blob pattern,
long start)
- Specified by:
position in interface java.sql.Blob
position
public long position(byte[] pattern,
long start)
- Specified by:
position in interface java.sql.Blob
setBinaryStream
public java.io.OutputStream setBinaryStream(long pos)
- Specified by:
setBinaryStream 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 length)
- Specified by:
setBytes in interface java.sql.Blob
truncate
public void truncate(long length)
- Specified by:
truncate in interface java.sql.Blob