docs: @Override
      public void write(int idx) throws IOException {
          try {
              beforeWrite(1);
              out.write(idx);
              afterWrite(1);
          } catch (IOException e) {
              handleIOException(e);
          }
      }