Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

decompression of zip files in j2ME

 
Holly Pearl
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to read a zip file(having 100 text files) from the web server. I am using HttpConnection and I am reading the bytes using ZLibInputStream. I need to decompress the bytes. As there is no inflate function in j2me. I searched online and found GZIP.inflate() function provided by java4ever.com.

I am wondering if anyone had tested the GZIP.inflate function. I appreciate if anyone could provide a sample code. Also, does the file extension has to be .zip or .gzip.

Thanks in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Sri Sri",

Welcome to the JavaRanch. We don't have many rules here, but we do insist that you use you Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see http://www.javaranch.com/name.jsp .

I can't say specifically about your problem, since I'm not familiar. The one thing that you do need to determine, however, is whether the java4ever solution is designed to run in a JME environment. The JME core classes don't have all the methods and capabilities that the full JRE definition provides, so if a class was coded to use those missing methods or objects, it won't work in a JME JVM.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic