Solved

Compression algorithms

Posted on 1997-03-15
4
762 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
4 Comments
 

Author Comment

by:NellPhilipp
Comment Utility
Edited text of question
0
 

Accepted Solution

by:
jhofmann031697 earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now