Reputation: 231
I want to use java.io.FileInputStream, java.io.FileOutputStream, java.io.ObjectInputStream, java.io.ObjectOutputStream classes in my blackberry project. But blackberry supports J2ME[i.e. CLDC], which doesn't contain these classes. Is there any solution to this problem? How to use these classes in blackberry project? Thanks in advance.
Upvotes: 0
Views: 276
Reputation: 64700
Well, the only way you could use J2SE classes in your project is to re-implement those classes using the provided J2ME core classes. This would be very messy, would probably take a long time and would be rather error prone but it could be done.
You are better served using the classes provided by the CLDC. It does affect code portability but...its a phone: there is a limit to how portable you're going to get.
Upvotes: 1