public void writeTo(OutputStream outputStream) throws IOException {
  outputStream.write(getBytes());
}

public void writeTo ( OutputStream outputStream ) throws IOException { outputStream . write ( getBytes ( ) ) ; }
writes copy of source bytes to output stream . doesn ' t close the stream
