package org.openrdf.query.resultio.sparqljson;

import java.io.OutputStream;
import java.util.List;

import org.openrdf.query.BindingSet;
import org.openrdf.query.TupleQueryResultHandlerException;

public class stSPARQLResultsGeoJSONWriter extends SPARQLResultsJSONWriter {

	public stSPARQLResultsGeoJSONWriter(OutputStream out) {
		super(out);
	}

	@Override
	public void startQueryResult(List<String> bindingNames)
			throws TupleQueryResultHandlerException {
		
	}

	@Override
	public void endQueryResult() throws TupleQueryResultHandlerException {
	}

	@Override
	public void handleSolution(BindingSet bindingSet)
			throws TupleQueryResultHandlerException {
	}
}

package org.openrdf.query.resultio.sparqljson;

import java.io.OutputStream;
import java.util.List;

import org.openrdf.query.BindingSet;
import org.openrdf.query.TupleQueryResultHandlerException;
import org.openrdf.query.resultio.TupleQueryResultFormat;
import org.openrdf.query.resultio.TupleQueryResultWriter;

public class stSPARQLResultsGeoJSONWriter implements TupleQueryResultWriter {

	public stSPARQLResultsGeoJSONWriter(OutputStream out) {
	}

	@Override
	public void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException {
		
	}

	@Override
	public void endQueryResult() throws TupleQueryResultHandlerException {
	}

	@Override
	public void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException {
	}

	@Override
	public TupleQueryResultFormat getTupleQueryResultFormat() {
		return TupleQueryResultFormat.JSON;
	}
}

revert stSPARQLResultsGeoJSONWriter from extending SPARQLResultsJSONWriter: all functionality is private