/** Output a result set in the XML format, inserting a style sheet in the XMl output * * @param outStream output stream * @param qresults result set * @param stylesheet The URL of the stylsheet */ static public void outputAsXML(OutputStream outStream, ResultSet qresults, String stylesheet) { XMLOutput xOut = new XMLOutput(stylesheet) ; xOut.format(outStream, qresults) ; }
/** Return a string that has the result set serilized as XML (not RDF) * with a style sheet directive inserted into the XML. * @param qresults result set * @param stylesheet * @return string */ public static String asXMLString(ResultSet qresults, String stylesheet) { XMLOutput xOut = new XMLOutput(stylesheet) ; return xOut.asString(qresults) ; }
public XMLOutput(boolean includeXMLinst, String stylesheetURL) { setStylesheetURL(stylesheetURL) ; setIncludeXMLinst(includeXMLinst) ; }
public XMLOutput(String stylesheetURL) { setStylesheetURL(stylesheetURL) ; }
public XMLOutput(boolean includeXMLinst) { setIncludeXMLinst(includeXMLinst) ; }
public XMLOutput(String stylesheetURL) { setStylesheetURL(stylesheetURL) ; }
public XMLOutput(boolean includeXMLinst) { setIncludeXMLinst(includeXMLinst) ; }
/** Output a result set in the XML format, inserting a style sheet in the XMl output * * @param outStream output stream * @param qresults result set * @param stylesheet The URL of the stylsheet */ static public void outputAsXML(OutputStream outStream, ResultSet qresults, String stylesheet) { XMLOutput xOut = new XMLOutput(stylesheet) ; xOut.format(outStream, qresults) ; }
/** Return a string that has the result set serilized as XML (not RDF) * * @param booleanResult The boolean result to encode * @param stylesheet * @return string */ public static String asXMLString(boolean booleanResult, String stylesheet) { XMLOutput xOut = new XMLOutput(stylesheet) ; return xOut.asString(booleanResult) ; }
public XMLOutput(boolean includeXMLinst, String stylesheetURL) { setStylesheetURL(stylesheetURL) ; setIncludeXMLinst(includeXMLinst) ; }
final int rows = req.getParams().getInt(CommonParams.ROWS, 10); writeStartDocumentList("response", start, rows, (Integer) data.remove(Names.NUM_FOUND), 1.0f); final XMLOutput outputter = new XMLOutput(false); outputter.format(new WriterOutputStream(writer), (ResultSet)value); writeEndDocumentList(); } else if (value instanceof String || value instanceof Query) {
/** Return a string that has the result set serilized as XML (not RDF) * with a style sheet directive inserted into the XML. * @param qresults result set * @param stylesheet * @return string */ public static String asXMLString(ResultSet qresults, String stylesheet) { XMLOutput xOut = new XMLOutput(stylesheet) ; return xOut.asString(qresults) ; }
/** Return a string that has the result set serilized as XML (not RDF) * * @param booleanResult The boolean result to encode * @param stylesheet * @return string */ public static String asXMLString(boolean booleanResult, String stylesheet) { XMLOutput xOut = new XMLOutput(stylesheet) ; return xOut.asString(booleanResult) ; }