public static String streamToString(InputStream is, String charset) { try { return getStreamAsString(is, charset); } catch (IOException ex) { throw new IllegalStateException("Cannot convert stream to string", ex); } }
public static String streamToString(InputStream is, String charset) { try { return getStreamAsString(is, charset); } catch (IOException ex) { throw new IllegalStateException("Cannot convert stream to string", ex); } }