Show / Hide Table of Contents

Class ResultWriteThroughHandler

A Results Handler which writes the handled Results out to a System.IO.TextWriter using a provided IResultFormatter.
Inheritance
System.Object
BaseHandler
BaseResultsHandler
ResultWriteThroughHandler
Implements
ISparqlResultsHandler
INodeFactory
Inherited Members
BaseResultsHandler.StartResults()
BaseResultsHandler.EndResults(Boolean)
BaseResultsHandler.HandleBooleanResult(Boolean)
BaseResultsHandler.HandleVariable(String)
BaseResultsHandler.HandleResult(SparqlResult)
BaseHandler.NodeFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(String)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(String, Uri)
BaseHandler.CreateLiteralNode(String)
BaseHandler.CreateLiteralNode(String, String)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateVariableNode(String)
BaseHandler.GetNextBlankNodeID()
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 Source

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.
| Improve this Doc View Source

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.
| Improve this Doc View Source

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.
| Improve this Doc View Source

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 Source

EndResultsInternal(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
BaseResultsHandler.EndResultsInternal(Boolean)
| Improve this Doc View Source

HandleBooleanResultInternal(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
BaseResultsHandler.HandleBooleanResultInternal(Boolean)
| Improve this Doc View Source

HandleResultInternal(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
BaseResultsHandler.HandleResultInternal(SparqlResult)
| Improve this Doc View Source

HandleVariableInternal(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
BaseResultsHandler.HandleVariableInternal(String)
| Improve this Doc View Source

StartResultsInternal()

Starts writing results.
Declaration
protected override void StartResultsInternal()
Overrides
BaseResultsHandler.StartResultsInternal()

Implements

ISparqlResultsHandler
INodeFactory

Extension Methods

Extensions.AsEnumerable<T>(T)
HandlerExtensions.Apply(ISparqlResultsHandler, SparqlResultSet)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • ResultWriteThroughHandler(Type, TextWriter)
    • ResultWriteThroughHandler(Type, TextWriter, Boolean)
    • ResultWriteThroughHandler(IResultFormatter, TextWriter)
    • ResultWriteThroughHandler(IResultFormatter, TextWriter, Boolean)
  • Methods
    • EndResultsInternal(Boolean)
    • HandleBooleanResultInternal(Boolean)
    • HandleResultInternal(SparqlResult)
    • HandleVariableInternal(String)
    • StartResultsInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX