The Artima Developer Community
Sponsored Link

Java Answers Forum
compression byte array

2 replies on 1 page. Most recent reply: Sep 29, 2006 12:32 AM by Mohan Kumar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
dan ziv

Posts: 7
Nickname: j6df
Registered: Aug, 2006

compression byte array Posted: Sep 27, 2006 12:06 PM
Reply to this message Reply
Advertisement
how can I make an compression to byte array in order to minimize size in memory?


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: compression byte array Posted: Sep 28, 2006 4:54 AM
Reply to this message Reply
There surely exists a opensource zip algorithm for java.

Maybe you're able to use the methods for reading jar files. They use zip compression, too.

Mohan Kumar

Posts: 3
Nickname: itsmohankm
Registered: Sep, 2006

Re: compression byte array Posted: Sep 29, 2006 12:32 AM
Reply to this message Reply
If you are using later versions of JDK 1.2 then there is a package named "java.util.zip" & "java.util.jar" in the Java API. You can make use of the functionality provided there. Its basically LZW compression algorithm they use.

Flat View: This topic has 2 replies on 1 page
Topic: I can't append to a file, what a shame !!! Previous Topic   Next Topic Topic: Best way to learn JAVA basics

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use