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