AW: Store BitSet

From: Peter Schröder (Peter.Schroede..reenet-ag.de)
Date: Fri Mar 09 2007 - 02:28:43 EST

  • Next message: Peter Schröder: "AW: AW: Java5: the expression of type list needs unchecked conversion"

    hi peter,

    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.

    -----Ursprüngliche Nachricht-----
    Von: Peter Karich [mailto:peatha..ahoo.de]
    Gesendet: Donnerstag, 8. März 2007 23:39
    An: use..ayenne.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 versa??

    Is there any further documentation on that subject? Because I can't find
    useful informations in javadocs and google results.
    Does anyone has a simple example of reading+writing an arbitrary object?

    Thank you,
    Peter Karich.

                    
    ___________________________________________________________
    Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



    This archive was generated by hypermail 2.0.0 : Fri Mar 09 2007 - 02:29:08 EST