Class ResultWriteThroughHandler
A Results Handler which writes the handled Results out to a TextWriter using a provided IResultFormatter.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class ResultWriteThroughHandler : BaseResultsHandler, ISparqlResultsHandler, INodeFactory
  Constructors
| Edit this page View SourceResultWriteThroughHandler(Type, TextWriter)
Creates a new Write-Through Handler.
Declaration
public ResultWriteThroughHandler(Type formatterType, TextWriter writer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Type | formatterType | Type of the formatter to create.  | 
      
| TextWriter | writer | Text Writer to write to.  | 
      
ResultWriteThroughHandler(Type, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public ResultWriteThroughHandler(Type formatterType, TextWriter writer, bool closeOnEnd)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Type | formatterType | Type of the formatter to create.  | 
      
| TextWriter | writer | Text Writer to write to.  | 
      
| bool | 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.  | 
      
| 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.  | 
      
| TextWriter | writer | Text Writer to write to.  | 
      
| bool | closeOnEnd | Whether to close the writer at the end of RDF handling.  | 
      
Methods
| Edit this page View SourceEndResultsInternal(bool)
Ends the writing of results closing the TextWriter depending on the option set when this instance was instantiated.
Declaration
protected override void EndResultsInternal(bool ok)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | ok | 
Overrides
| Edit this page View SourceHandleBooleanResultInternal(bool)
Writes a Boolean Result to the output.
Declaration
protected override void HandleBooleanResultInternal(bool result)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | result | Boolean Result.  | 
      
Overrides
| Edit this page 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 | 
|---|---|
| bool | 
Overrides
| Edit this page 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 | 
|---|---|
| bool | 
Overrides
| Edit this page View SourceStartResultsInternal()
Starts writing results.
Declaration
protected override void StartResultsInternal()