public class StreamReader extends Object
| Constructor and Description |
|---|
StreamReader() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBodyAsStringFromConnection(HttpURLConnection connection)
It retrieves the response body as a String from a HttpURLConnection object.
|
public static String getBodyAsStringFromConnection(HttpURLConnection connection)
connection - The connection object should be already connected at least once to the host.Copyright © 2015. All rights reserved.