public class BinaryQueryResultWriter extends AbstractQueryResultWriter implements TupleQueryResultWriter, org.eclipse.rdf4j.common.io.ByteSink
BinaryQueryResultConstants.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
tupleVariablesFound |
| Constructor and Description |
|---|
BinaryQueryResultWriter(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
endHeader() |
void |
endQueryResult() |
void |
error(QueryErrorType errType,
String msg)
Writes an error msg to the stream.
|
OutputStream |
getOutputStream() |
TupleQueryResultFormat |
getQueryResultFormat() |
Collection<org.eclipse.rdf4j.rio.RioSetting<?>> |
getSupportedSettings() |
TupleQueryResultFormat |
getTupleQueryResultFormat() |
void |
handleBoolean(boolean value) |
void |
handleLinks(List<String> linkUrls) |
void |
handleNamespace(String prefix,
String uri) |
protected void |
handleSolutionImpl(BindingSet bindingSet) |
void |
handleStylesheet(String stylesheetUrl) |
void |
startDocument() |
void |
startHeader() |
void |
startQueryResult(List<String> bindingNames) |
getFileFormat, getWriterConfig, handleSolution, setWriterConfig, xsdStringToPlainLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterConfig, setWriterConfighandleSolutionacceptsFileFormat, getFileFormatpublic BinaryQueryResultWriter(OutputStream out)
public OutputStream getOutputStream()
getOutputStream in interface org.eclipse.rdf4j.common.io.ByteSinkpublic final TupleQueryResultFormat getTupleQueryResultFormat()
getTupleQueryResultFormat in interface TupleQueryResultWriterpublic final TupleQueryResultFormat getQueryResultFormat()
getQueryResultFormat in interface QueryResultWriterpublic Collection<org.eclipse.rdf4j.rio.RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultWritergetSupportedSettings in class AbstractQueryResultWriterpublic void startDocument()
throws TupleQueryResultHandlerException
startDocument in interface QueryResultWriterTupleQueryResultHandlerExceptionpublic void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
startQueryResult in interface QueryResultHandlerstartQueryResult in class AbstractQueryResultWriterTupleQueryResultHandlerExceptionpublic void endQueryResult()
throws TupleQueryResultHandlerException
endQueryResult in interface QueryResultHandlerTupleQueryResultHandlerExceptionprotected void handleSolutionImpl(BindingSet bindingSet) throws TupleQueryResultHandlerException
handleSolutionImpl in class AbstractQueryResultWriterTupleQueryResultHandlerExceptionpublic void handleNamespace(String prefix, String uri) throws QueryResultHandlerException
handleNamespace in interface QueryResultWriterQueryResultHandlerExceptionpublic void error(QueryErrorType errType, String msg) throws IOException
errType - The error type.msg - The error message.IOException - When the error could not be written to the stream.public void handleStylesheet(String stylesheetUrl) throws QueryResultHandlerException
handleStylesheet in interface QueryResultWriterQueryResultHandlerExceptionpublic void startHeader()
throws QueryResultHandlerException
startHeader in interface QueryResultWriterQueryResultHandlerExceptionpublic void handleLinks(List<String> linkUrls) throws QueryResultHandlerException
handleLinks in interface QueryResultHandlerQueryResultHandlerExceptionpublic void endHeader()
throws QueryResultHandlerException
endHeader in interface QueryResultWriterQueryResultHandlerExceptionpublic void handleBoolean(boolean value)
throws QueryResultHandlerException
handleBoolean in interface QueryResultHandlerQueryResultHandlerExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.