Strabon

changeset 335:4bca23a7a31d

stSPARQLResultsGeoJSONWriter now extends SPARQLResultsJSONWriter in order to reuse JSON functionality
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Jun 24 13:51:39 2012 +0300 (2012-06-24)
parents 66668a121eda
children a605ffb0e55b
files resultio/src/main/java/org/openrdf/query/resultio/sparqljson/stSPARQLResultsGeoJSONWriter.java
line diff
     1.1 --- a/resultio/src/main/java/org/openrdf/query/resultio/sparqljson/stSPARQLResultsGeoJSONWriter.java	Sun Jun 24 13:48:09 2012 +0300
     1.2 +++ b/resultio/src/main/java/org/openrdf/query/resultio/sparqljson/stSPARQLResultsGeoJSONWriter.java	Sun Jun 24 13:51:39 2012 +0300
     1.3 @@ -1,13 +1,16 @@
     1.4  package org.openrdf.query.resultio.sparqljson;
     1.5  
     1.6 +import java.io.OutputStream;
     1.7  import java.util.List;
     1.8  
     1.9  import org.openrdf.query.BindingSet;
    1.10  import org.openrdf.query.TupleQueryResultHandlerException;
    1.11 -import org.openrdf.query.resultio.TupleQueryResultFormat;
    1.12 -import org.openrdf.query.resultio.TupleQueryResultWriter;
    1.13  
    1.14 -public class stSPARQLResultsGeoJSONWriter implements TupleQueryResultWriter {
    1.15 +public class stSPARQLResultsGeoJSONWriter extends SPARQLResultsJSONWriter {
    1.16 +
    1.17 +	public stSPARQLResultsGeoJSONWriter(OutputStream out) {
    1.18 +		super(out);
    1.19 +	}
    1.20  
    1.21  	@Override
    1.22  	public void startQueryResult(List<String> bindingNames)
    1.23 @@ -23,10 +26,4 @@
    1.24  	public void handleSolution(BindingSet bindingSet)
    1.25  			throws TupleQueryResultHandlerException {
    1.26  	}
    1.27 -
    1.28 -	@Override
    1.29 -	public TupleQueryResultFormat getTupleQueryResultFormat() {
    1.30 -		return TupleQueryResultFormat.JSON;
    1.31 -	}
    1.32 -
    1.33  }