Class ResultWriteThroughHandler
A Results Handler which writes the handled Results out to a System.IO.TextWriter using a provided IResultFormatter.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRDF.dll
Syntax
public class ResultWriteThroughHandler : BaseResultsHandler, ISparqlResultsHandler, INodeFactory
Constructors
| Improve this Doc View SourceResultWriteThroughHandler(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(Type, TextWriter, Boolean)
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(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. |
ResultWriteThroughHandler(IResultFormatter, TextWriter, Boolean)
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. |
Methods
| Improve this Doc View SourceEndResultsInternal(Boolean)
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(Boolean)
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(SparqlResult)
Writes a Result to the output.
Declaration
protected override bool HandleResultInternal(SparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
SparqlResult | 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 |
---|---|---|
System.String | var | Variable Name. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceStartResultsInternal()
Starts writing results.
Declaration
protected override void StartResultsInternal()