code: @Override
      public int read() throws IOException {
          if (this.in != null) {
              int r = read0();
              count(r < 0 ? -1 : 1);
              return r;
          } else {
              throw new IOException("stream closed");
          }
      }
docs: {@inheritDoc}