Class BaseGZipDatasetWriter
Abstract Base class for Dataset writers that produce GZipped Output.
Inheritance
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
| Improve this Doc View SourceBaseGZipDatasetWriter(IStoreWriter)
Creates a new GZipped Writer.
Declaration
protected BaseGZipDatasetWriter(IStoreWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| IStoreWriter | writer | Underlying writer. |
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.
Methods
| Improve this Doc 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. |
| System.IO.TextWriter | output | Writer to save to. Must be an instance of System.IO.StreamWriter. |
| System.Boolean | leaveOpen | Boolean flag indicating if the output stream should remain open after the output is written. |
Overrides
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.
ToString()
Gets the description of the writer.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
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.
Events
| Improve this Doc View SourceWarning
Event raised when non-fatal output errors
Declaration
public override event StoreWriterWarning Warning
Event Type
| Type | Description |
|---|---|
| StoreWriterWarning |
Overrides
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.