Show / Hide Table of Contents

Class BaseWriterContext

Base Class for Writer Context Objects.

Inheritance
object
BaseWriterContext
HtmlWriterContext
NTriplesWriterContext
TurtleWriterContext
Implements
IWriterContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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

| Edit this page 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.

TextWriter output

TextWriter being written to.

| Edit this page View Source

BaseWriterContext(IGraph, TextWriter, int)

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.

TextWriter output

TextWriter being written to.

int compressionLevel

Compression Level.

| Edit this page View Source

BaseWriterContext(IGraph, TextWriter, int, bool, bool)

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.

TextWriter output

TextWriter being written to.

int compressionLevel

Compression Level.

bool prettyPrint

Pretty Print Mode.

bool hiSpeedAllowed

High Speed Mode.

Fields

| Edit this page View Source

_compressionLevel

Compression Level to be used.

Declaration
protected int _compressionLevel
Field Value
Type Description
int
| Edit this page View Source

_uriFormatter

URI Formatter.

Declaration
protected IUriFormatter _uriFormatter
Field Value
Type Description
IUriFormatter

Properties

| Edit this page View Source

CompressionLevel

Gets/Sets the Compression Level used.

Declaration
public virtual int CompressionLevel { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Graph

Gets the Graph being written.

Declaration
public IGraph Graph { get; }
Property Value
Type Description
IGraph
| Edit this page View Source

HighSpeedModePermitted

Gets/Sets the High Speed Mode used.

Declaration
public bool HighSpeedModePermitted { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

NodeFormatter

Gets/Sets the Node Formatter in use.

Declaration
public INodeFormatter NodeFormatter { get; set; }
Property Value
Type Description
INodeFormatter
| Edit this page View Source

Output

Gets the TextWriter being written to.

Declaration
public TextWriter Output { get; }
Property Value
Type Description
TextWriter
| Edit this page View Source

PrettyPrint

Gets/Sets the Pretty Printing Mode used.

Declaration
public bool PrettyPrint { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

QNameMapper

Gets the QName Output Mapper in use.

Declaration
public QNameOutputMapper QNameMapper { get; }
Property Value
Type Description
QNameOutputMapper
| Edit this page View Source

UriFactory

Gets the URI factory for the writer to use.

Declaration
public IUriFactory UriFactory { get; set; }
Property Value
Type Description
IUriFactory
Remarks

Defaults to the URI factory of the graph being written.

| Edit this page 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.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseWriterContext(IGraph, TextWriter)
    • BaseWriterContext(IGraph, TextWriter, int)
    • BaseWriterContext(IGraph, TextWriter, int, bool, bool)
  • Fields
    • _compressionLevel
    • _uriFormatter
  • Properties
    • CompressionLevel
    • Graph
    • HighSpeedModePermitted
    • NodeFormatter
    • Output
    • PrettyPrint
    • QNameMapper
    • UriFactory
    • UriFormatter
  • Implements
  • Extension Methods
Back to top Generated by DocFX