code: private void writeToDelegate(byte[] data) {
  
          if (m_delegateStream != null) {
              try {
                  m_delegateStream.write(data);
              } catch (IOException e) {
                  throw new RuntimeException(e);
              }
          }
      }
docs: Writes data to delegate stream if it has been set.
  
  @param data the data to write