Package org.postgresql.jdbc
Class PgBlob
- java.lang.Object
-
- org.postgresql.jdbc.AbstractBlobClob
-
- org.postgresql.jdbc.PgBlob
-
- All Implemented Interfaces:
java.sql.Blob
public class PgBlob extends AbstractBlobClob implements java.sql.Blob
-
-
Field Summary
-
Fields inherited from class org.postgresql.jdbc.AbstractBlobClob
conn
-
-
Constructor Summary
Constructors Constructor Description PgBlob(BaseConnection conn, long oid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getBinaryStream(long pos, long length)
int
setBytes(long pos, byte[] bytes)
int
setBytes(long pos, byte[] bytes, int offset, int len)
-
Methods inherited from class org.postgresql.jdbc.AbstractBlobClob
addSubLO, assertPosition, assertPosition, checkFreed, free, getBinaryStream, getBytes, getLo, length, position, position, setBinaryStream, truncate
-
-
-
-
Constructor Detail
-
PgBlob
public PgBlob(BaseConnection conn, long oid) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-
Method Detail
-
getBinaryStream
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
- Specified by:
getBinaryStream
in interfacejava.sql.Blob
- Throws:
java.sql.SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException
- Specified by:
setBytes
in interfacejava.sql.Blob
- Throws:
java.sql.SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException
- Specified by:
setBytes
in interfacejava.sql.Blob
- Throws:
java.sql.SQLException
-
-