Class ResultWriteThroughHandler
A Results Handler which writes the handled Results out to a System.IO.TextWriter using a provided IResultFormatter.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class ResultWriteThroughHandler : BaseResultsHandler, ISparqlResultsHandler, INodeFactory
Constructors
| Improve this Doc View SourceResultWriteThroughHandler(Type, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public ResultWriteThroughHandler(Type formatterType, TextWriter writer, bool closeOnEnd)
Parameters
Type | Name | Description |
---|---|---|
System.Type | formatterType | Type of the formatter to create. |
System.IO.TextWriter | writer | Text Writer to write to. |
System.Boolean | closeOnEnd | Whether to close the writer at the end of RDF handling. |
ResultWriteThroughHandler(Type, TextWriter)
Creates a new Write-Through Handler.
Declaration
public ResultWriteThroughHandler(Type formatterType, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Type | formatterType | Type of the formatter to create. |
System.IO.TextWriter | writer | Text Writer to write to. |
ResultWriteThroughHandler(IResultFormatter, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public ResultWriteThroughHandler(IResultFormatter formatter, TextWriter writer, bool closeOnEnd)
Parameters
Type | Name | Description |
---|---|---|
IResultFormatter | formatter | Triple Formatter to use. |
System.IO.TextWriter | writer | Text Writer to write to. |
System.Boolean | closeOnEnd | Whether to close the writer at the end of RDF handling. |
ResultWriteThroughHandler(IResultFormatter, TextWriter)
Creates a new Write-Through Handler.
Declaration
public ResultWriteThroughHandler(IResultFormatter formatter, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IResultFormatter | formatter | Triple Formatter to use. |
System.IO.TextWriter | writer | Text Writer to write to. |
Methods
| Improve this Doc View SourceEndResultsInternal(bool)
Ends the writing of results closing the System.IO.TextWriter depending on the option set when this instance was instantiated.
Declaration
protected override void EndResultsInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok |
Overrides
| Improve this Doc View SourceHandleBooleanResultInternal(bool)
Writes a Boolean Result to the output.
Declaration
protected override void HandleBooleanResultInternal(bool result)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | result | Boolean Result. |
Overrides
| Improve this Doc View SourceHandleResultInternal(ISparqlResult)
Writes a Result to the output.
Declaration
protected override bool HandleResultInternal(ISparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResult | result | SPARQL Result. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleVariableInternal(string)
Writes a Variable declaration to the output.
Declaration
protected override bool HandleVariableInternal(string var)
Parameters
Type | Name | Description |
---|---|---|
string | var | Variable Name. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceStartResultsInternal()
Starts writing results.
Declaration
protected override void StartResultsInternal()