code: public int read() throws IOException {
      if (chunk == null || pos + 1 == chunk.length) {
        if (!fetchChunk()) {
          return -1;
        }
      }
      return chunk[pos++] & 0xff;
    }
docs: /*
  (non-Javadoc)
  
  @see java.io.InputStream#read()