Writing to a String:

    Writing to an Output Stream:

    Write to Writer