docs: @Override
      public int read() throws IOException {
          int c = origStream.read();
          if (c != -1) {
              os.write(c);
          } else {
              os.close();
          }
          return c;
      }