jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1158188 - /incubator/jena/Scratch/AFS/trunk/src-dev/dev/RunAFS.java
Date Tue, 16 Aug 2011 10:34:26 GMT
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<String, ResultFormat> mapContentTypeToResultSet = new HashMap<String,
ResultFormat>() ;
+    public static ResultsFormat contentTypeToResultSet(String contentType) { return mapContentTypeToResultSet.get(contentType)
; }
+    static Map<String, ResultsFormat> mapContentTypeToResultSet = new HashMap<String,
ResultsFormat>() ;
     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<T> extends HttpOp.HttpResponseHandler



Mime
View raw message