Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
SirSaula
Posts: 30
Registered: ‎04-13-2010
My Device: N/A

How to read files using Eclipse IDE with BB plugin

How to read files using Eclipse IDE with BB plugin, just a code for doing that would be nice. Also include imports if possible.

 

I use:

 

Eclipse IDE 3.4.1

BB Plug-in for Eclipse

Thanks,
Saula
Your neighborhood programmer.
http://homeworkjava.com
Developer
JCarty
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: How to read files using Eclipse IDE with BB plugin

This link should give you enough code to get you going.

 

http://docs.blackberry.com/en/developers/deliverables/11938/CS_reading_sections_of_a_binary_file_919...

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Developer
gluth
Posts: 192
Registered: ‎09-23-2009
My Device: 9860/PlayBook/Dev Alpha
My Carrier: Plus GSM

Re: How to read files using Eclipse IDE with BB plugin

Tip: The biggest cost on reading files is on opening or skipping content, good idea is when you have read different parts of the file to split it into smaller parts (for fast skipping). InputStream for binary files supports 'reset' function, which is much, much, much faster than close & open operation.

Found my post helpfull? Like it! It solves your trouble? Help others and accept it as solution. Search before asking.
My apps: Secret Cod3s | Should my tablet be banned?
--
Jakub Nietrzeba
PGS Software S.A.
Your reliable partner in Poland - IT Outsourcing - BlackBerry, iPhone, Web and Standalone applications