L
Loopy
I'm trying to simulate a deck of trading cards and want to write the
entire deck to a data file on the hard drive. I have the following
hierarchy:
ICard (Interface)
Card (Implements above interface, abstract representation of a card)
Each playing card would then override the Card class, storing its own
information. I can successfully create objects of, say
AnExampleDragonCard and add these objects to a Vector. I write the
vector to a datafile via the ObjectOutputStream class. I get no
errors.
When I read the object in via the ObjectInputStream, I get a
StreamCorrupted error. Does anyone know why this may be happening,
given the info I have provided?
Johnny Ooi (Loopy)
entire deck to a data file on the hard drive. I have the following
hierarchy:
ICard (Interface)
Card (Implements above interface, abstract representation of a card)
Each playing card would then override the Card class, storing its own
information. I can successfully create objects of, say
AnExampleDragonCard and add these objects to a Vector. I write the
vector to a datafile via the ObjectOutputStream class. I get no
errors.
When I read the object in via the ObjectInputStream, I get a
StreamCorrupted error. Does anyone know why this may be happening,
given the info I have provided?
Johnny Ooi (Loopy)