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