Solved

Compression algorithms

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
javap bin 2 40
login jsp example 24 62
tomcat administrtor 12 58
Eclipse for Java EE development 2 25
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

792 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