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.
|
|