Class PgBlob

  • All Implemented Interfaces:
    java.sql.Blob

    public class PgBlob
    extends AbstractBlobClob
    implements java.sql.Blob
    • 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 interface java.sql.Blob
        Throws:
        java.sql.SQLException
      • setBytes

        public int setBytes​(long pos,
                            byte[] bytes)
                     throws java.sql.SQLException
        Specified by:
        setBytes in interface java.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 interface java.sql.Blob
        Throws:
        java.sql.SQLException