Class WriteThroughHandler
A RDF Handler which writes the handled Triples out to a System.IO.TextWriter using a provided IQuadFormatter.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class WriteThroughHandler : BaseRdfHandler, IRdfHandler, INodeFactory
Constructors
| Improve this Doc View SourceWriteThroughHandler(Type, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(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. |
WriteThroughHandler(Type, TextWriter)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(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. |
WriteThroughHandler(IQuadFormatter, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(IQuadFormatter formatter, TextWriter writer, bool closeOnEnd)
Parameters
Type | Name | Description |
---|---|---|
IQuadFormatter | 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. |
WriteThroughHandler(IQuadFormatter, TextWriter)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(IQuadFormatter formatter, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IQuadFormatter | formatter | Triple Formatter to use. |
System.IO.TextWriter | writer | Text Writer to write to. |
WriteThroughHandler(ITripleFormatter, TextWriter, bool)
Declaration
public WriteThroughHandler(ITripleFormatter formatter, TextWriter writer, bool closeOnEnd)
Parameters
Type | Name | Description |
---|---|---|
ITripleFormatter | formatter | |
System.IO.TextWriter | writer | |
System.Boolean | closeOnEnd |
Properties
| Improve this Doc View SourceAcceptsAll
Gets that the Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourceEndRdfInternal(bool)
Ends RDF Handling closing the System.IO.TextWriter being used if the setting is enabled.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Indicates whether parsing completed without error. |
Overrides
| Improve this Doc View SourceHandleBaseUriInternal(Uri)
Handles Base URI Declarations passing them to the underlying formatter if applicable.
Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleNamespaceInternal(string, Uri)
Handles Namespace Declarations passing them to the underlying formatter if applicable.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Namespace Prefix. |
System.Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleQuadInternal(Triple, IRefNode)
Handles Triples by writing them using the underlying formatter.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
IRefNode | graph | The name of the graph containing the triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleTripleInternal(Triple)
Handles Triples by writing them using the underlying formatter.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceStartRdfInternal()
Starts RDF Handling instantiating a Triple Formatter if necessary.
Declaration
protected override void StartRdfInternal()