code: @Override
      public void write(byte[] bts) throws IOException {
          try {
              int len = bts != null ? bts.length : 0;
              beforeWrite(len);
              out.write(bts);
              afterWrite(len);
          } catch (IOException e) {
              handleIOException(e);
          }
      }
docs: Invokes the delegate's <code>write(byte[])</code> method.
  
  @param bts the bytes to write
  @throws java.io.IOException if an I/O error occurs