public void readTupleQueryResult(TupleQueryResultHandler handler)
throws TupleQueryResultHandlerException, IOException, QueryResultParseException, NoCompatibleMediaType
{
String mimeType = readContentType();
try {
TupleQueryResultFormat format = TupleQueryResultParserRegistry.getInstance().getFileFormatForMIMEType(
mimeType);
QueryResultIO.parse(getResponseBodyAsStream(), format, handler, pool.getValueFactory());
}
catch (UnsupportedQueryResultFormatException e) {
logger.warn(e.toString(), e);