Solved

Compression algorithms

Posted on 1997-03-15
4
792 Views
Last Modified: 2011-09-20
For my thesis , I need some compression algorithms, which work on bytes. I'm thinking about Hufmann, but maybe there are others already implemented.
The most important thing is, that I need the algorithms, the rest I can do by myself. Of course any java implementation or a hint or link is especially welcome.
Thanks in advance

Philipp
0
Comment
Question by:NellPhilipp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Author Comment

by:NellPhilipp
ID: 1219041
Edited text of question
0
 

Accepted Solution

by:
jhofmann031697 earned 100 total points
ID: 1219042
Hallo Philipp,

in the Java SDK 1.1 there are some classes you can use.
Have a look in the package java.util.zip. There you will find
several classes for compression and decompression.

E. g. you can use the class GZIPOutputStream (or one of the classes that is more appropriate for you). The Constructor of the
class expects an OutputStream as parameter. You can use one of the provided subclasses of OutputStream to write directly to a file or write your on subclass of OutputStream to store your data
e. g. in a StringBuffer. There are also classes available for decompression, then you can subclass InputStream instead or use one of the provided subclasses.

I hope this information helps you.

Feel free to contact me directly via hofmann@brzn.de.

Success,

Juergen
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1219043
There's always 'The Data Compression Book' from MST Books.
Not a mathematically in-depth book...but enough information to allow you to perform most any compression algorithm...you can always adapt what they give.
0
 
LVL 1

Expert Comment

by:prasad2000
ID: 5469226
Hi jhofmann ,
i need a piece of code which takes a file as a input and compress it into another file.
it would be a great help if u can send to me.
thanks in advance,
prasad



0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question