Class BaseGZipWriter
Abstract base class for RDF writers that generate GZipped output.
Inheritance
System.Object
BaseGZipWriter
Implements
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)
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
| Improve this Doc View SourceBaseGZipWriter(IRdfWriter)
Creates a new GZipped writer.
Declaration
protected BaseGZipWriter(IRdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IRdfWriter | writer | Underlying writer. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | raised if writer is null. |
Methods
| Improve this Doc 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. |
System.String | filename | File to save to. |
Overrides
| Improve this Doc 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. |
System.IO.TextWriter | output | Writer to save to. |
Overrides
| Improve this Doc View SourceToString()
Gets the description of the writer.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Events
| Improve this Doc 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 |