Class BaseGZipDatasetWriter
Abstract Base class for Dataset writers that produce GZipped Output.
Inheritance
BaseGZipDatasetWriter
Implements
Inherited Members
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseGZipDatasetWriter : BaseStoreWriter, IStoreWriter
Remarks
While the normal writers 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 SourceBaseGZipDatasetWriter(IStoreWriter)
Creates a new GZipped Writer.
Declaration
protected BaseGZipDatasetWriter(IStoreWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| IStoreWriter | writer | Underlying writer. |
Methods
| Edit this page View SourceSave(ITripleStore, TextWriter, bool)
Saves a RDF Dataset as GZipped output.
Declaration
public override void Save(ITripleStore store, TextWriter output, bool leaveOpen)
Parameters
| Type | Name | Description |
|---|---|---|
| ITripleStore | store | Store to save. |
| TextWriter | output | Writer to save to. Must be an instance of StreamWriter. |
| bool | leaveOpen | Boolean flag indicating if the output stream should remain open after the output is written. |
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 raised when non-fatal output errors
Declaration
public override event StoreWriterWarning Warning
Event Type
| Type | Description |
|---|---|
| StoreWriterWarning |