Class BaseGZipWriter
Abstract base class for RDF writers that generate GZipped output.
Inheritance
BaseGZipWriter
Implements
Inherited Members
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 SourceBaseGZipWriter(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 |
Methods
| Edit this page View SourceSave(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
| Edit this page View SourceSaveInternal(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
| Edit this page View SourceToString()
Gets the description of the writer.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Events
| Edit this page View SourceWarning
Event which is raised if non-fatal errors occur writing RDF output
Declaration
public override event RdfWriterWarning Warning
Event Type
| Type | Description |
|---|---|
| RdfWriterWarning |