docs: public void write(byte[] buffer, int offset, int len) {
          if (ivSuppress == true)
              return;
          // provide same checking as PrintStream does, however do it in a
          // friendlier way. Avoid
          // exceptions if at all possible
          if (len == 0)
              return;
          if (buffer == null)
              throw new NullPointerException();
          if ((offset < 0) || (len < 0))
              throw new IndexOutOfBoundsException();
          int size = buffer.length;
          if ((offset > size) || (len > size) || ((offset + len) > size))
              throw new IndexOutOfBoundsException();
          if ((offset + len) < 0)
              throw new IndexOutOfBoundsException();
          // all checks passed, continue
          byte[] data = new byte[len];
          System.arraycopy(buffer, offset, data, 0, len);
  
          // cache data now.
          {
              LogRecord se = cacheTraceData(data);
              if (se != null) {
                  dispatchEvent(se);
              }
          }
  
          // Write the data to the PrintStream this stream is wrapping. Doing this
          // write can cause
          // an IOException to occur. In the real PrintStream, this exception is
          // caught, suppressed
          // and the error bit set. Since we delegate to the real stream, we can't
          // actually get an
          // exception back, but the compiler doesn't realize that....so we need a
          // try/catch/eat block
          // try {
          // if (ivFormatted == false)
          // ivStream.write(data);
          // else {
          // synchronized (this) {
          // // Write data in formatted form. If a write is pending a
          // // header has already been written.
          // // Otherwise new up an event and write it, which also writes
          // // the header.
          // if (ivWritePending) {
          // ivStream.write(data);
          // } else {
          // LogRecord sse = createEvent(data);
          // sse.writeSelfToStream(ivStream, ivFormatType, false, ivBuffer,
          // ivFormatter, ivDate, ivFieldPos);
          // // ivWritePending = true; //D205075
          // }
          //
          // // terminate the event if last character is a line separator
          // if (endsWithLineSeparator(data)) // D205075 begin
          // ivWritePending = false;
          // else
          // ivWritePending = true; // D205075 end
          // }
          // }
          // } catch (java.io.IOException ioe) {
          // }
      }