Here you can find the source of appendToOutputStream(OutputStream out, String value)
public static void appendToOutputStream(OutputStream out, String value) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void appendToOutputStream(OutputStream out, String value) throws IOException { out.write(value.getBytes("UTF-8")); }//from ww w . jav a 2 s . c o m }