Return-Path: X-Original-To: apmail-incubator-jena-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 149D88C26 for ; Tue, 16 Aug 2011 10:34:58 +0000 (UTC) Received: (qmail 30275 invoked by uid 500); 16 Aug 2011 10:34:57 -0000 Delivered-To: apmail-incubator-jena-commits-archive@incubator.apache.org Received: (qmail 30245 invoked by uid 500); 16 Aug 2011 10:34:54 -0000 Mailing-List: contact jena-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-commits@incubator.apache.org Received: (qmail 30233 invoked by uid 99); 16 Aug 2011 10:34:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 10:34:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 10:34:46 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CD77D23888CE; Tue, 16 Aug 2011 10:34:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1158188 - /incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java Date: Tue, 16 Aug 2011 10:34:26 -0000 To: jena-commits@incubator.apache.org From: andy@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110816103426.CD77D23888CE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: andy Date: Tue Aug 16 10:34:26 2011 New Revision: 1158188 URL: http://svn.apache.org/viewvc?rev=1158188&view=rev Log: (empty) Modified: incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java Modified: incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java?rev=1158188&r1=1158187&r2=1158188&view=diff ============================================================================== --- incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java (original) +++ incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java Tue Aug 16 10:34:26 2011 @@ -45,7 +45,7 @@ import com.hp.hpl.jena.iri.ViolationCode import com.hp.hpl.jena.query.ResultSet ; import com.hp.hpl.jena.query.ResultSetFactory ; import com.hp.hpl.jena.query.ResultSetFormatter ; -import com.hp.hpl.jena.sparql.resultset.ResultFormat ; +import com.hp.hpl.jena.sparql.resultset.ResultsFormat ; import com.hp.hpl.jena.tdb.base.record.Record ; public class RunAFS @@ -77,7 +77,7 @@ public class RunAFS public void handle(String contentType, String baseIRI, HttpResponse response) throws IOException { MediaType mt = new MediaType(contentType) ; - ResultFormat fmt = contentTypeToResultSet(contentType) ; + ResultsFormat fmt = contentTypeToResultSet(contentType) ; InputStream in = response.getEntity().getContent() ; rs = ResultSetFactory.load(in, fmt) ; // Force reading @@ -130,12 +130,12 @@ public class RunAFS } - public static ResultFormat contentTypeToResultSet(String contentType) { return mapContentTypeToResultSet.get(contentType) ; } - static Map mapContentTypeToResultSet = new HashMap() ; + public static ResultsFormat contentTypeToResultSet(String contentType) { return mapContentTypeToResultSet.get(contentType) ; } + static Map mapContentTypeToResultSet = new HashMap() ; static { - mapContentTypeToResultSet.put(WebContent.contentTypeResultsXML, ResultFormat.FMT_RS_XML) ; - mapContentTypeToResultSet.put(WebContent.contentTypeResultsJSON, ResultFormat.FMT_RS_JSON) ; - mapContentTypeToResultSet.put(WebContent.contentTypeTextTSV, ResultFormat.FMT_RS_TSV) ; + mapContentTypeToResultSet.put(WebContent.contentTypeResultsXML, ResultsFormat.FMT_RS_XML) ; + mapContentTypeToResultSet.put(WebContent.contentTypeResultsJSON, ResultsFormat.FMT_RS_JSON) ; + mapContentTypeToResultSet.put(WebContent.contentTypeTextTSV, ResultsFormat.FMT_RS_TSV) ; } static interface HttpCaptureResponse extends HttpOp.HttpResponseHandler