Liferay 6.2-ce-ga5

com.liferay.portal.kernel.dao.jdbc
Class OutputBlob

java.lang.Object
  extended by com.liferay.portal.kernel.dao.jdbc.OutputBlob
All Implemented Interfaces:
Blob

public class OutputBlob
extends Object
implements Blob


Constructor Summary
OutputBlob(InputStream inputStream, long length)
           
 
Method Summary
 void free()
           
 InputStream getBinaryStream()
           
 InputStream getBinaryStream(long pos, long length)
           
 byte[] getBytes(long pos, int length)
           
 long length()
           
 long position(Blob pattern, long start)
           
 long position(byte[] pattern, long start)
           
 OutputStream setBinaryStream(long pos)
           
 int setBytes(long pos, byte[] bytes)
           
 int setBytes(long pos, byte[] bytes, int offset, int length)
           
 void truncate(long length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputBlob

public OutputBlob(InputStream inputStream,
                  long length)
Method Detail

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

Liferay 6.2-ce-ga5