*/
public Object parseAs(Type dataType) throws IOException {
// Check if we have an ObjectParser that we can use
ObjectParser objectParser = request.getParser();
Preconditions.checkArgument(objectParser != null, "No ObjectParser defined for response");
return objectParser.parseAndClose(getContent(), getContentCharset(), dataType);
}
/**
* Parses the content of the HTTP response from {@link #getContent()} and reads it into a string.
*