Skip to main content

How to read jar entries in j2me ?

1 reply [Last post]
Anonymous

Hello,
I have got a jar file within which I have stored images.
Now in my program I want to read those images from jar.

In MIDP there are no apis available within java.util package to read the jar entries :(
So how can I read the entries within jar ?
Can anyone help me ?

With Best Regards,
Raghavendra. K. Naik
Analyst - ISI Practice
PA Consulting Group
* Nitesh Broadway, M.G.Road, Bangalore
> * +91 25318855 - ext. 28381
> * Raghavendra.Naik@paconsulting.com
> * http://www.paconsulting.com
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ujjwal Dubey

How to read jar entries in j2me ?Hi,
If i'm getting your question right you can use following instance method of the Class class:
InputStream getResourceAsStream(String name)
-Ujjwal

----- Original Message -----
From: Raghavendra K. Naik
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Tuesday, January 09, 2007 11:27 AM
Subject: How to read jar entries in j2me ?

Hello,
I have got a jar file within which I have stored images.
Now in my program I want to read those images from jar.

In MIDP there are no apis available within java.util package to read the jar entries :(
So how can I read the entries within jar ?
Can anyone help me ?

With Best Regards,
Raghavendra. K. Naik
Analyst - ISI Practice
PA Consulting Group
? Nitesh Broadway, M.G.Road, Bangalore
( +91 25318855 - ext. 28381
* Raghavendra.Naik@paconsulting.com
8 http://www.paconsulting.com

=========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]