org.openrdf.query.resultio
Interface TupleQueryResultParser

All Known Implementing Classes:
BinaryQueryResultParser, SPARQLResultsXMLParser, TupleQueryResultParserBase

public interface TupleQueryResultParser

A general interface for tuple query result parsers.


Method Summary
 TupleQueryResultFormat getTupleQueryResultFormat()
          Gets the query result format that this parser can parse.
 void parse(InputStream in)
          Parses the data from the supplied InputStream.
 void setTupleQueryResultHandler(TupleQueryResultHandler handler)
          Sets the TupleQueryResultHandler that will handle the parsed query result data.
 void setValueFactory(ValueFactory valueFactory)
          Sets the ValueFactory that the parser will use to create Value objects for the parsed query result.
 

Method Detail

getTupleQueryResultFormat

TupleQueryResultFormat getTupleQueryResultFormat()
Gets the query result format that this parser can parse.


setValueFactory

void setValueFactory(ValueFactory valueFactory)
Sets the ValueFactory that the parser will use to create Value objects for the parsed query result.

Parameters:
valueFactory - The value factory that the parser should use.

setTupleQueryResultHandler

void setTupleQueryResultHandler(TupleQueryResultHandler handler)
Sets the TupleQueryResultHandler that will handle the parsed query result data.


parse

void parse(InputStream in)
           throws IOException,
                  QueryResultParseException,
                  TupleQueryResultHandlerException
Parses the data from the supplied InputStream.

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.
TupleQueryResultHandlerException - If the configured query result handler has encountered an unrecoverable error.


Copyright © 2001-2007 Aduna. All Rights Reserved.