public synchronized static String readString(InputStream inputStream)
			throws Throwable {
		if (inputStream == null)
			return null;
		// String result = null;
		ByteArrayOutputStream outputStream = null;
		try {
			outputStream = new ByteArrayOutputStream();
			//
			int bytesRead = -1;
			while ((bytesRead = inputStream.read()) != -1) {
				outputStream.write(bytesRead);
			}
			return new String(outputStream.toByteArray());
		} catch (Throwable e) {
			// throw BKException.dealEx(e);
			throw e;
		} finally {
			if (outputStream != null)
				outputStream.close();
		}
	}