org.openrdf.query.resultio.sparqlxml
Class SPARQLBooleanXMLParser

java.lang.Object
  extended by org.openrdf.query.resultio.sparqlxml.SPARQLBooleanXMLParser
All Implemented Interfaces:
BooleanQueryResultParser

public class SPARQLBooleanXMLParser
extends Object
implements BooleanQueryResultParser

Parser for reading boolean query results formatted as SPARQL Results Documents. See SPARQL Query Results XML Format for the definition of this format. The parser assumes that the XML is wellformed.


Constructor Summary
SPARQLBooleanXMLParser()
          Creates a new parser for the SPARQL Query Results XML Format.
 
Method Summary
 BooleanQueryResultFormat getBooleanQueryResultFormat()
          Gets the query result format that this parser can parse.
 boolean parse(InputStream in)
          Parses the data from the supplied InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPARQLBooleanXMLParser

public SPARQLBooleanXMLParser()
Creates a new parser for the SPARQL Query Results XML Format.

Method Detail

getBooleanQueryResultFormat

public BooleanQueryResultFormat getBooleanQueryResultFormat()
Description copied from interface: BooleanQueryResultParser
Gets the query result format that this parser can parse.

Specified by:
getBooleanQueryResultFormat in interface BooleanQueryResultParser

parse

public boolean parse(InputStream in)
              throws IOException,
                     QueryResultParseException
Description copied from interface: BooleanQueryResultParser
Parses the data from the supplied InputStream.

Specified by:
parse in interface BooleanQueryResultParser
Parameters:
in - The InputStream from which to read the data.
Throws:
IOException - If an I/O error occurred while data was read from the InputStream.
QueryResultParseException - If the parser has encountered an unrecoverable parse error.


Copyright © 2001-2007 Aduna. All Rights Reserved.