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