Strabon

changeset 336:a605ffb0e55b

revert stSPARQLResultsGeoJSONWriter from extending SPARQLResultsJSONWriter: all functionality is private
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Jun 24 14:11:53 2012 +0300 (2012-06-24)
parents 4bca23a7a31d
children 6acd5a415449
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:51:39 2012 +0300
     1.2 +++ b/resultio/src/main/java/org/openrdf/query/resultio/sparqljson/stSPARQLResultsGeoJSONWriter.java	Sun Jun 24 14:11:53 2012 +0300
     1.3 @@ -5,16 +5,16 @@
     1.4  
     1.5  import org.openrdf.query.BindingSet;
     1.6  import org.openrdf.query.TupleQueryResultHandlerException;
     1.7 +import org.openrdf.query.resultio.TupleQueryResultFormat;
     1.8 +import org.openrdf.query.resultio.TupleQueryResultWriter;
     1.9  
    1.10 -public class stSPARQLResultsGeoJSONWriter extends SPARQLResultsJSONWriter {
    1.11 +public class stSPARQLResultsGeoJSONWriter implements TupleQueryResultWriter {
    1.12  
    1.13  	public stSPARQLResultsGeoJSONWriter(OutputStream out) {
    1.14 -		super(out);
    1.15  	}
    1.16  
    1.17  	@Override
    1.18 -	public void startQueryResult(List<String> bindingNames)
    1.19 -			throws TupleQueryResultHandlerException {
    1.20 +	public void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException {
    1.21  		
    1.22  	}
    1.23  
    1.24 @@ -23,7 +23,11 @@
    1.25  	}
    1.26  
    1.27  	@Override
    1.28 -	public void handleSolution(BindingSet bindingSet)
    1.29 -			throws TupleQueryResultHandlerException {
    1.30 +	public void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException {
    1.31 +	}
    1.32 +
    1.33 +	@Override
    1.34 +	public TupleQueryResultFormat getTupleQueryResultFormat() {
    1.35 +		return TupleQueryResultFormat.JSON;
    1.36  	}
    1.37  }