Class ResultWriteThroughHandler
A Results Handler which writes the handled Results out to a System.
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. |
formatterType | Type of the formatter to create. |
System. |
writer | Text Writer to write to. |
System. |
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. |
formatterType | Type of the formatter to create. |
System. |
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 |
---|---|---|
IResult |
formatter | Triple Formatter to use. |
System. |
writer | Text Writer to write to. |
System. |
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 |
---|---|---|
IResult |
formatter | Triple Formatter to use. |
System. |
writer | Text Writer to write to. |
Methods
| Improve this Doc View SourceEndResultsInternal(bool)
Ends the writing of results closing the System.
Declaration
protected override void EndResultsInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
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 |
---|---|---|
ISparql |
result | SPARQL Result. |
Returns
Type | Description |
---|---|
System. |
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. |
Overrides
| Improve this Doc View SourceStartResultsInternal()
Starts writing results.
Declaration
protected override void StartResultsInternal()