AW: AW: Store BitSet

2007-03-12 Thread Peter Schröder
- Von: Peter Karich [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 9. März 2007 21:41 An: user@cayenne.apache.org Betreff: Re: AW: Store BitSet Hi, Peter Schröder! > you may use > http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html > to serialize any given object. bu

Re: AW: Store BitSet

2007-03-09 Thread Peter Karich
Hi, Peter Schröder! > you may use > http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html > to serialize any given object. but i guess thats not what you want. Ah thank you! with the addition of ByteArrayOutputStream it is very easy: //writing: ByteArrayOutputStream baos = new

Re: Store BitSet

2007-03-09 Thread Tore Halset
Hello Peter. On Mar 8, 2007, at 23:39, Peter Karich wrote: I want to store (and read) a BitSet into (from) the database. The long[] array is private and I don't want to hack it by using reflection or even store this as String with toString :-) It depend on how you want to store it in the data

AW: Store BitSet

2007-03-08 Thread Peter Schröder
@cayenne.apache.org Betreff: Store BitSet Hallo! I want to store (and read) a BitSet into (from) the database. The long[] array is private and I don't want to hack it by using reflection or even store this as String with toString :-) So, how can I transform any object to a byte[] array and vice

Store BitSet

2007-03-08 Thread Peter Karich
Hallo! I want to store (and read) a BitSet into (from) the database. The long[] array is private and I don't want to hack it by using reflection or even store this as String with toString :-) So, how can I transform any object to a byte[] array and vice versa?? Is there any further documentation