org.openrdf.query.resultio.sparqlxml
Class SPARQLBooleanXMLWriter

java.lang.Object
  extended by org.openrdf.query.resultio.sparqlxml.SPARQLBooleanXMLWriter
All Implemented Interfaces:
BooleanQueryResultWriter

public class SPARQLBooleanXMLWriter
extends Object
implements BooleanQueryResultWriter

A BooleanQueryResultWriter that writes boolean query results in the SPARQL Query Results XML Format.


Constructor Summary
SPARQLBooleanXMLWriter(OutputStream out)
           
SPARQLBooleanXMLWriter(XMLWriter xmlWriter)
           
 
Method Summary
 BooleanQueryResultFormat getBooleanQueryResultFormat()
          Gets the query result format that this writer uses.
 void setPrettyPrint(boolean prettyPrint)
          Enables/disables addition of indentation characters and newlines in the XML document.
 void write(boolean value)
          Writes the specified boolean value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPARQLBooleanXMLWriter

public SPARQLBooleanXMLWriter(OutputStream out)

SPARQLBooleanXMLWriter

public SPARQLBooleanXMLWriter(XMLWriter xmlWriter)
Method Detail

setPrettyPrint

public void setPrettyPrint(boolean prettyPrint)
Enables/disables addition of indentation characters and newlines in the XML document. By default, pretty-printing is set to true. If set to false, no indentation and newlines are added to the XML document. This method has to be used before writing starts (that is, before write(boolean) is called).


getBooleanQueryResultFormat

public final BooleanQueryResultFormat getBooleanQueryResultFormat()
Description copied from interface: BooleanQueryResultWriter
Gets the query result format that this writer uses.

Specified by:
getBooleanQueryResultFormat in interface BooleanQueryResultWriter

write

public void write(boolean value)
           throws IOException
Description copied from interface: BooleanQueryResultWriter
Writes the specified boolean value.

Specified by:
write in interface BooleanQueryResultWriter
Throws:
IOException


Copyright © 2001-2008 Aduna. All Rights Reserved.