public class NonNullBinaryQueryResultParser
extends org.openrdf.query.resultio.AbstractTupleQueryResultParser
Fork of BinaryQueryResultParser that uses MapBindingSet
instead of ListBindingSet so null values are not returned
Copy/pasted from BinaryQueryResultParser instead of extended because
Sesame, in their wisdom, made everything in it private
| Modifier and Type | Field and Description |
|---|---|
protected CharsetDecoder |
charsetDecoder |
protected int |
formatVersion |
protected DataInputStream |
in |
protected String[] |
namespaceArray |
| Constructor and Description |
|---|
NonNullBinaryQueryResultParser() |
NonNullBinaryQueryResultParser(org.openrdf.model.ValueFactory valueFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.openrdf.query.resultio.TupleQueryResultFormat |
getTupleQueryResultFormat() |
void |
parse(InputStream in) |
protected void |
processError() |
protected void |
processNamespace() |
protected org.openrdf.model.BNode |
readBnode() |
protected org.openrdf.model.Literal |
readLiteral(int recordTypeMarker) |
protected org.openrdf.model.IRI |
readQName() |
protected String |
readString() |
protected String |
readStringV2()
Reads a string from the version 2 format.
|
protected org.openrdf.model.IRI |
readURI() |
getQueryResultFormat, parseQueryResult, setTupleQueryResultHandlergetParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactoryprotected DataInputStream in
protected int formatVersion
protected CharsetDecoder charsetDecoder
protected String[] namespaceArray
public NonNullBinaryQueryResultParser()
public NonNullBinaryQueryResultParser(org.openrdf.model.ValueFactory valueFactory)
public final org.openrdf.query.resultio.TupleQueryResultFormat getTupleQueryResultFormat()
public void parse(InputStream in) throws IOException, org.openrdf.query.resultio.QueryResultParseException, org.openrdf.query.TupleQueryResultHandlerException
IOExceptionorg.openrdf.query.resultio.QueryResultParseExceptionorg.openrdf.query.TupleQueryResultHandlerExceptionprotected void processError()
throws IOException,
org.openrdf.query.resultio.QueryResultParseException
IOExceptionorg.openrdf.query.resultio.QueryResultParseExceptionprotected void processNamespace()
throws IOException
IOExceptionprotected org.openrdf.model.IRI readQName()
throws IOException
IOExceptionprotected org.openrdf.model.IRI readURI()
throws IOException
IOExceptionprotected org.openrdf.model.BNode readBnode()
throws IOException
IOExceptionprotected org.openrdf.model.Literal readLiteral(int recordTypeMarker)
throws IOException,
org.openrdf.query.resultio.QueryResultParseException
IOExceptionorg.openrdf.query.resultio.QueryResultParseExceptionprotected String readString() throws IOException
IOExceptionprotected String readStringV2() throws IOException
IOExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.