Class WriteThroughHandler
A RDF Handler which writes the handled Triples out to a Text
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class WriteThroughHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory
Constructors
| Edit this page View SourceWriteThroughHandler(Type, TextWriter)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(Type formatterType, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Type | formatterType | Type of the formatter to create. |
Text |
writer | Text Writer to write to. |
WriteThroughHandler(Type, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(Type formatterType, TextWriter writer, bool closeOnEnd)
Parameters
Type | Name | Description |
---|---|---|
Type | formatterType | Type of the formatter to create. |
Text |
writer | Text Writer to write to. |
bool | 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 |
---|---|---|
IQuad |
formatter | Triple Formatter to use. |
Text |
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 |
---|---|---|
IQuad |
formatter | Quad Formatter to use. |
Text |
writer | Text Writer to write to. |
bool | closeOnEnd | Whether to close the writer at the end of RDF handling. |
WriteThroughHandler(ITripleFormatter, TextWriter, bool)
Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(ITripleFormatter formatter, TextWriter writer, bool closeOnEnd)
Parameters
Type | Name | Description |
---|---|---|
ITriple |
formatter | Triple formatter to use. |
Text |
writer | Text write to write to. |
bool | closeOnEnd | Whether to close the writer at the end of RDF handling. |
Exceptions
Type | Condition |
---|---|
Argument |
Properties
| Edit this page View SourceAcceptsAll
Gets that the Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceEndRdfInternal(bool)
Ends RDF Handling closing the Text
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
bool | ok | Indicates whether parsing completed without error. |
Overrides
| Edit this page 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 |
---|---|---|
Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceHandleCommentInternal(string)
Handles Comments passing them to the underlying formatter if applicable.
Declaration
protected override bool HandleCommentInternal(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | Comment text. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page 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
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceHandleQuadInternal(Triple, IRefNode)
Handles Triples by writing them using the underlying formatter.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page 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 |
---|---|
bool |
Overrides
| Edit this page View SourceStartRdfInternal()
Starts RDF Handling instantiating a Triple Formatter if necessary.
Declaration
protected override void StartRdfInternal()