• Post Reply Bookmark Topic Watch Topic
  • New Topic

Huffman coding cant write large binary data to file  RSS feed

 
dale shin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am working on a project on writing our own huffman coding. I am currently having trouble writing the binary 1's and 0's to an output file. It works with small input files but for large files it does not write anything out to the output file. I have tried everything I could think of and find such as trying different input streams but nothing works. The method responsible for writing is the compress method. I would appreciate if anyone could shed some light on my situation! Thank you!

 
Mansukhdeep Thind
Ranch Hand
Posts: 1163
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly happens when you run the code with a large file? Is there some error / exception? Does the code go into an infinite loop? What is your observation?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What steps have you taken to examine the problem? If you aren't familiar with using debuggers, you may want to put lots of System.out.println statements in the code to see where it goes off the expected behavior.
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch

What debugging info did you get?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!