[Dev] repository Lob API change

Andi Vajda vajda at osafoundation.org
Thu Jan 13 17:21:20 PST 2005


Having two Lob types, Text and Binary, didn't make sense. The only difference 
was support for encoding and unicode string to byte string conversion.
I removed Text and Binary and replaced them with a new type, called Lob.

As before, there are two streaming APIs on a Lob object, input/outputStream 
that works with byte strings and reader/writer that works with unicode 
strings. You can only use the reader/writer streaming APIs if you specified an 
encoding value at Lob instantiation time or if you specified a unicode string 
at Lob instantiation time, in which case encoding defaults to 'utf-8'.

I changed all the code that I could find that was using Text or Binary and 
fixed it to use Lob. This involved changing parcel XML files, schema changes, 
and you therefore need to re-create your repository after your next 'cvs 
update'.

Andi..


More information about the Dev mailing list