I have the following problem. When I my program connects to my
Magnetic Stripe Reader via the commport and i drag a card through,
here are 5 different events thrown. Thats for my atm card. Each event
contains different data. Now when i drag my supermarket card through
it only gives 3 events. Now my program is supposed to recognise cards
from a database. I want to capture all the events into a single
string, but i never know how many events a specific card gives. How
can i make it so that the program takes all the events?
Another question. Why cant i Serialize an inner class? I created a
Entry object. It implements Serializable and i don't get compile
errors, but when i try to use writeObject() it throws a
notSerializableException. When i made a standalone class by copy &
pasting it worked fine. Why?