Originally posted by Chetan Parekh:
I have a String variable that contains some data and I want to compres it.
How can I achieve the same?
I don't want to store in file, I want to compress it in varible only.
ASCII silly question, Get a silly ANSI.
Originally posted by Stuart Ash:
Does the String contain some unutterable utterances by yourself?![]()
My blood is tested +ve for Java.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
[OCP 21 Professional Study Guide] [OCP 17 Complete Study Guide] [OCP 17 Practice Tests] [OCP 11 Complete Study Guide] [OCP 11 Programmer I] [OCP 11 Programmer II] [OCP 11 Practice Tests] [OCA 8] [OCP 8] [OCP 8 Practice Tests Book] [Blog]
Originally posted by u johansson:
Any compression requires data with similarities. If your data hasn't got any - you cannot compress it.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Stan James:
Remember String is unicode, so it's using 2 bytes of memory for each character. You could just use char[] and save half.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Chetan Parekh:
I have a String variable that contains some data and I want to compres it.
How can I achieve the same?
I don't want to store in file, I want to compress it in varible only.
Originally posted by u johansson:
Sorry, Ilja Preuss, Huffman coding is based on similarites.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
My blood is tested +ve for Java.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Consider Paul's rocket mass heater. |