From: | Jeremiah Jahn <jeremiah(at)cs(dot)earlham(dot)edu> |
---|---|
To: | Barry Lind <blind(at)xythos(dot)com> |
Cc: | David Wall <d(dot)wall(at)computer(dot)org>, postgres jdbc <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: create BLOB question |
Date: | 2003-02-11 17:23:33 |
Message-ID: | 1044984212.1789.618.camel@bluejay.goodinassociates.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
When it's finished does it truncate the data?
I tried to find the actual implementation of the Blob.setBytes() in the
postgres code, but couldn't. Just a bunch of abstract classes and
things, none of which had code for these methods. Do you know here the
implementing code for these methods are?
-jj-
On Tue, 2003-02-11 at 10:42, Barry Lind wrote:
> Jeremiah Jahn wrote:
> > I'm writing the BLOB wrapper.
> >
> > 3 methods have ambiguous implementations.
> >
> > public java.io.OutputStream setBinaryStream(long pos) throws SQLException{
> > }
> > public int setBytes(long pos,byte[] bytes) throws SQLException{
> > }
> > public int setBytes(long pos,byte[] bytes,int offset,int len) throws SQLException{
> > }
> >
> > If I already have an array of data. An I start writing to it at position
> > pos, does it overwrite the old data or insert into the array at that
> > point and move the old data down toward the end?
> >
>
> My understanding is that it should overwrite the data at that point.
>
> --Barry
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Jeremiah Jahn <jeremiah(at)cs(dot)earlham(dot)edu>
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2003-02-11 17:48:36 | Re: create BLOB question |
Previous Message | Barry Lind | 2003-02-11 16:42:20 | Re: create BLOB question |