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
Highlighted
New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student
Accepted Solution

Problem in importing library (ECLIPSE)

Hi..

I'm quite new to programming...
I'm using eclipse to learn developing blackberry...

I need to use import java.io.bufferedoutputstream

but it's no exist...

Anyone know solution about this?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem in importing library (ECLIPSE)

BlackBerry API does not support the full set of Java classes,  It is restricted to those that are defined for J2ME and a load of additional BBRY added classes.  For a full list of the supported classes, see here:

http://www.blackberry.com/developers/docs/7.1.0api/

New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student

Re: Problem in importing library (ECLIPSE)

If i stiil want to use import java.io.buffered.outputstream, is it possible?

How if it's possible?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem in importing library (ECLIPSE)

It is not a supported class. 

 

If you need that functionality, you will have to create your own class using the supported classes.  Alternatively replace the class with a supported one.

 

In this specific example, I suspect the processing should work the same with an ordinary OutputStream. 

New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student

Re: Problem in importing library (ECLIPSE)

Actually i need it to to make a program that can unzip file..
U have any idea how to make it without that library?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem in importing library (ECLIPSE)

I can't see why you need that specific class to unzip a file.  But I presume you are trying to re-use some existing zip library and don't what to change it?  If so, sorry, you are going to have to change it.  It would surprise me if that was the only class you had to change.   

 

If you search the forum you will find a few Threads that might help you unzip your file. 

New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student

Re: Problem in importing library (ECLIPSE)

I've searched, but many of thems used the 3rd party library..
Is it possible if not using 3rd party library?

Can u share the link if it's possible?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem in importing library (ECLIPSE)

[ Edited ]

Just for clarification, when people talk about unzipping,they are normally referring to archives created by one of the many 'zip' utilities, which create a file format originally defined by the product pkzip. 

 

There is no way to unzip such a zip archive supplied as standard - BlackBerry Java does not provide anything that will do it for you.

 

So you have two choices:

a) write it yourself

b) use a third party library.

 

Search for unzip to find Threads that have discussed these and other related points in the past. 

 

In case you have missed it, the Search box is near the top right hand side of the screen you are looking at.  Leave the pull down on 'Board', just fill in the Search text box and press the Search button.