/** Output a result set in the JSON format * Format: <a href="http://www.w3.org/TR/rdf-sparql-json-res/">Serializing SPARQL Query Results in JSON</a> * JSON: <a href="http://json.org">http://json.org/</a> * * @param outStream output stream * @param resultSet result set */ static public void outputAsJSON(OutputStream outStream, ResultSet resultSet) { JSONOutput jOut = new JSONOutput() ; jOut.format(outStream, resultSet) ; }
/** Output a result set in the JSON format * Format: <a href="http://www.w3.org/TR/rdf-sparql-json-res/">Serializing SPARQL Query Results in JSON</a> * JSON: <a href="http://json.org">http://json.org/</a> * * @param outStream output stream * @param booleanResult The boolean result to encode */ static public void outputAsJSON(OutputStream outStream, boolean booleanResult) { JSONOutput jOut = new JSONOutput() ; jOut.format(outStream, booleanResult) ; }
/** Output a result set in the JSON format * Format: <a href="http://www.w3.org/TR/rdf-sparql-json-res/">Serializing SPARQL Query Results in JSON</a> * JSON: <a href="http://json.org">http://json.org/</a> * * @param outStream output stream * @param resultSet result set */ static public void outputAsJSON(OutputStream outStream, ResultSet resultSet) { JSONOutput jOut = new JSONOutput() ; jOut.format(outStream, resultSet) ; }
/** Output a result set in the JSON format * Format: <a href="http://www.w3.org/TR/rdf-sparql-json-res/">Serializing SPARQL Query Results in JSON</a> * JSON: <a href="http://json.org">http://json.org/</a> * * @param outStream output stream * @param booleanResult The boolean result to encode */ static public void outputAsJSON(OutputStream outStream, boolean booleanResult) { JSONOutput jOut = new JSONOutput() ; jOut.format(outStream, booleanResult) ; }