Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 4 - Huffman Trees (Part 1)
Date: Mon Oct 8 2001 5:22 pm
Author: Loving, Benjamin Jameson <bloving@andrew.cmu.edu>
Subject: A call to in.readByte() gives me an error

In the compress function in Huffman.java I want to call

System.out.println( in.readByte() );

, but when i compile My211Zip.java an error message pops up saying

./Huffman.java:24: Exception java.io.IOException must be caught, or it must be declared in the throws clause of this method.
System.out.println( in.readByte() );

I don't put the call within a try/catch statement, so should i just modify FileBitReader.java? Also similar error pops up when i try in.readBits(8); but in.numBytes() works fine.


Post response

There are no previous messagesGo to the following message
Current Thread Detail:
A call to in.readByte() gives me an er...      Loving, Benjamin Jameson      Mon Oct 8 2001 5:22 pm       
Re: A call to in.readByte() gives m...      Bortz, Andrew S.      Mon Oct 8 2001 7:07 pm       
Re: A call to in.readByte() gives m...      Lee, Charles C.      Mon Oct 8 2001 7:37 pm       

Back to previous screen