org.openrdf.query.resultio.text
Class BooleanTextParser

java.lang.Object
  extended by org.openrdf.query.resultio.text.BooleanTextParser
All Implemented Interfaces:
BooleanQueryResultParser

public class BooleanTextParser
extends Object
implements BooleanQueryResultParser

Reader for the plain text boolean result format.


Constructor Summary
BooleanTextParser()
          Creates a new parser for the plain text boolean query result 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

BooleanTextParser

public BooleanTextParser()
Creates a new parser for the plain text boolean query result format.

Method Detail

getBooleanQueryResultFormat

public final 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-2010 Aduna. All Rights Reserved.