Show / Hide Table of Contents

Class BaseWriterContext

Base Class for Writer Context Objects.
Inheritance
System.Object
BaseWriterContext
HtmlWriterContext
NTriplesWriterContext
TurtleWriterContext
Implements
IWriterContext
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.Writing.Contexts
Assembly: dotNetRDF.dll
Syntax
public class BaseWriterContext : IWriterContext
Remarks
This is not an abstract class since some writers will require only this information or possibly less.

Constructors

| Improve this Doc View Source

BaseWriterContext(IGraph, TextWriter)

Creates a new Base Writer Context with default settings.
Declaration
public BaseWriterContext(IGraph g, TextWriter output)
Parameters
Type Name Description
IGraph g Graph being written.
System.IO.TextWriter output TextWriter being written to.
| Improve this Doc View Source

BaseWriterContext(IGraph, TextWriter, Int32)

Creates a new Base Writer Context with custom settings.
Declaration
public BaseWriterContext(IGraph g, TextWriter output, int compressionLevel)
Parameters
Type Name Description
IGraph g Graph being written.
System.IO.TextWriter output TextWriter being written to.
System.Int32 compressionLevel Compression Level.
| Improve this Doc View Source

BaseWriterContext(IGraph, TextWriter, Int32, Boolean, Boolean)

Creates a new Base Writer Context with custom settings.
Declaration
public BaseWriterContext(IGraph g, TextWriter output, int compressionLevel, bool prettyPrint, bool hiSpeedAllowed)
Parameters
Type Name Description
IGraph g Graph being written.
System.IO.TextWriter output TextWriter being written to.
System.Int32 compressionLevel Compression Level.
System.Boolean prettyPrint Pretty Print Mode.
System.Boolean hiSpeedAllowed High Speed Mode.

Fields

| Improve this Doc View Source

_compressionLevel

Compression Level to be used.
Declaration
protected int _compressionLevel
Field Value
Type Description
System.Int32
| Improve this Doc View Source

_formatter

Node Formatter.
Declaration
protected INodeFormatter _formatter
Field Value
Type Description
INodeFormatter
| Improve this Doc View Source

_hiSpeedAllowed

High Speed Mode setting.
Declaration
protected bool _hiSpeedAllowed
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

_prettyPrint

Pretty Printing Mode setting.
Declaration
protected bool _prettyPrint
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

_qnameMapper

QName Output Mapper.
Declaration
protected QNameOutputMapper _qnameMapper
Field Value
Type Description
QNameOutputMapper
| Improve this Doc View Source

_uriFormatter

URI Formatter.
Declaration
protected IUriFormatter _uriFormatter
Field Value
Type Description
IUriFormatter

Properties

| Improve this Doc View Source

CompressionLevel

Gets/Sets the Compression Level used.
Declaration
public virtual int CompressionLevel { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Graph

Gets the Graph being written.
Declaration
public IGraph Graph { get; }
Property Value
Type Description
IGraph
| Improve this Doc View Source

HighSpeedModePermitted

Gets/Sets the High Speed Mode used.
Declaration
public bool HighSpeedModePermitted { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

NodeFormatter

Gets/Sets the Node Formatter in use.
Declaration
public INodeFormatter NodeFormatter { get; set; }
Property Value
Type Description
INodeFormatter
| Improve this Doc View Source

Output

Gets the TextWriter being written to.
Declaration
public TextWriter Output { get; }
Property Value
Type Description
System.IO.TextWriter
| Improve this Doc View Source

PrettyPrint

Gets/Sets the Pretty Printing Mode used.
Declaration
public bool PrettyPrint { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

QNameMapper

Gets the QName Output Mapper in use.
Declaration
public QNameOutputMapper QNameMapper { get; }
Property Value
Type Description
QNameOutputMapper
| Improve this Doc View Source

UriFormatter

Gets/Sets the URI Formatter in use.
Declaration
public IUriFormatter UriFormatter { get; set; }
Property Value
Type Description
IUriFormatter

Implements

IWriterContext

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseWriterContext(IGraph, TextWriter)
    • BaseWriterContext(IGraph, TextWriter, Int32)
    • BaseWriterContext(IGraph, TextWriter, Int32, Boolean, Boolean)
  • Fields
    • _compressionLevel
    • _formatter
    • _hiSpeedAllowed
    • _prettyPrint
    • _qnameMapper
    • _uriFormatter
  • Properties
    • CompressionLevel
    • Graph
    • HighSpeedModePermitted
    • NodeFormatter
    • Output
    • PrettyPrint
    • QNameMapper
    • UriFormatter
  • Implements
  • Extension Methods
Back to top Generated by DocFX