* Read a string from an input stream using a specific encoding.
* @ibm-api
*/
public static String readString(InputStream is, String encoding) throws IOException {
FastStringBuffer sb = new FastStringBuffer();
sb.load(new InputStreamReader(is,encoding));
return sb.toString();
}
/**
* Fill a buffer as much as we can from InputStream.