/** * @return The content as a string, or an empty string if the content byte array is null or empty. */ public String getContent() { if (getContentAsBytes() == null) { return ""; } else { return new String(content); } }
/** * @return The content as a string, or an empty string if the content byte array is null or empty. */ public String getContent() { if (getContentAsBytes() == null) { return ""; } else { return new String(content); } }
output.write(matchedResponse.getContentAsBytes());
output.write(matchedResponse.getContentAsBytes());