code: public int read() throws IOException {
          logger.debug("read()");
          logger.debug("count={} pos={}", count, pos);
          return (pos < count) ? (buf[pos++] & 0xff) : (-1);
      }
docs: --- begin ByteArrayInputStream compatible methods ---