Show / Hide Table of Contents

Class BaseGZipWriter

Abstract base class for RDF writers that generate GZipped output.

Inheritance
object
BaseRdfWriter
BaseGZipWriter
GZippedNTriplesWriter
GZippedNotation3Writer
GZippedRdfAWriter
GZippedRdfJsonWriter
GZippedRdfXmlWriter
GZippedTurtleWriter
Implements
IRdfWriter
Inherited Members
BaseRdfWriter.Save(IGraph, string, Encoding)
BaseRdfWriter.Save(IGraph, TextWriter)
BaseRdfWriter.Save(IGraph, TextWriter, bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseGZipWriter : BaseRdfWriter, IRdfWriter
Remarks

While the normal witers can be used with GZip streams directly this class just abstracts the wrapping of file/stream output into a GZip stream if it is not already passed as such.

Constructors

| Edit this page View Source

BaseGZipWriter(IRdfWriter)

Creates a new GZipped writer.

Declaration
protected BaseGZipWriter(IRdfWriter writer)
Parameters
Type Name Description
IRdfWriter writer

Underlying writer.

Exceptions
Type Condition
ArgumentNullException

raised if writer is null.

Methods

| Edit this page View Source

Save(IGraph, string)

Saves a Graph as GZipped output.

Declaration
public override void Save(IGraph g, string filename)
Parameters
Type Name Description
IGraph g

Graph to save.

string filename

File to save to.

Overrides
BaseRdfWriter.Save(IGraph, string)
| Edit this page View Source

SaveInternal(IGraph, TextWriter)

Saves a Graph as GZipped output.

Declaration
protected override void SaveInternal(IGraph g, TextWriter output)
Parameters
Type Name Description
IGraph g

Graph to save.

TextWriter output

Writer to save to.

Overrides
BaseRdfWriter.SaveInternal(IGraph, TextWriter)
| Edit this page View Source

ToString()

Gets the description of the writer.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Events

| Edit this page View Source

Warning

Event which is raised if non-fatal errors occur writing RDF output

Declaration
public override event RdfWriterWarning Warning
Event Type
Type Description
RdfWriterWarning
Overrides
BaseRdfWriter.Warning

Implements

IRdfWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseGZipWriter(IRdfWriter)
  • Methods
    • Save(IGraph, string)
    • SaveInternal(IGraph, TextWriter)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX