To somewhat add onto this question, I have: try { byte b_temp=in.readByte(); //all code necessary to build the code table } catch(Exception e){} in Huffman.java, but how do I loop that using either a while(/*something*/) or for(/*something*/) so that while there are bytes to read, execute the loop body?
A.k.a. I don't know what methods/etc. to use to forumulate the condition by which I continue to do in.readBytes().
I can't just loop infinitely and hope a thrown error will end the loop, either. |