@Test public void testGetResponseData() throws Exception { assertEquals(RESPONSE_DATA, target.getResponseData(new TestStringInputStream(RESPONSE_DATA, CHARSET_NAME))); }
@Override @NonNull public String getResponseData(@NonNull InputStream inputStream) throws IOException { StringBuilder stringData = new StringBuilder(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(inputStream, charsetName)); String line; while ((line = reader.readLine()) != null) { stringData.append(line); } } finally { if (reader != null) { reader.close(); } } return stringData.toString(); }
StringResponseParser implements ResponseDataParser<String> { @Override @NonNull public String getResponseData(@NonNull InputStream inputStream) throws IOException { StringBuilder stringData = new StringBuilder(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(inputStream, charsetName)); String line; while ((line = reader.readLine()) != null) { stringData.append(line); } } finally { if (reader != null) { reader.close(); } } return stringData.toString(); } }
StringResponseParser implements ResponseDataParser<String> { @Override @NonNull public String getResponseData(@NonNull InputStream inputStream) throws IOException { StringBuilder stringData = new StringBuilder(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(inputStream, charsetName)); String line; while ((line = reader.readLine()) != null) { stringData.append(line); } } finally { if (reader != null) { reader.close(); } } return stringData.toString(); } StringResponseParser();  StringResponseParser(@NonNull String charsetName); }
StringResponseParser implements ResponseDataParser<String> { @Override @NonNull public String getResponseData(@NonNull InputStream inputStream) throws IOException { StringBuilder stringData = new StringBuilder(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(inputStream, charsetName)); String line; while ((line = reader.readLine()) != null) { stringData.append(line); } } finally { if (reader != null) { reader.close(); } } return stringData.toString(); } StringResponseParser();  StringResponseParser(@NonNull String charsetName); @Override @NonNull String getResponseData(@NonNull InputStream inputStream); }
StringResponseParser implements ResponseDataParser<String> { @Override @NonNull public String getResponseData(@NonNull InputStream inputStream) throws IOException { StringBuilder stringData = new StringBuilder(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(inputStream, charsetName)); String line; while ((line = reader.readLine()) != null) { stringData.append(line); } } finally { if (reader != null) { reader.close(); } } return stringData.toString(); } StringResponseParser();  StringResponseParser(@NonNull String charsetName); @Override @NonNull String getResponseData(@NonNull InputStream inputStream);  }