code: public synchronized void write(byte[] pBytes, int pOffset, int pLength) throws IOException {
          out.write(pBytes, pOffset, pLength);
          bytesWritten += pLength;
      }
docs: Writes {@code pLength} bytes from the specified byte array
  starting at {@code pOffset} to the underlying output stream.
  
  @param pBytes   the data.
  @param pOffset the start offset in the data.
  @param pLength the number of bytes to write.
  @throws IOException if the underlying stream throws an IOException.