Example #1
0
 int read() throws Exception {
   current = reader.read();
   if (digest != null) {
     digest.update((byte) (current / 256));
     digest.update((byte) (current % 256));
   }
   return current;
 }
Example #2
0
 public void close() throws IOException {
   reader.close();
 }