Class BaseGZipDatasetWriter
Abstract Base class for Dataset writers that produce GZipped Output.
Inheritance
System.Object
BaseGZipDatasetWriter
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 BaseGZipDatasetWriter : IStoreWriter
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 SourceBaseGZipDatasetWriter(IStoreWriter)
Creates a new GZiped Writer.
Declaration
public BaseGZipDatasetWriter(IStoreWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IStoreWriter | writer | Underlying writer. |
Methods
| Improve this Doc View SourceSave(ITripleStore, TextWriter)
Saves a RDF Dataset as GZipped output.
Declaration
public void Save(ITripleStore store, TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to save. |
System.IO.TextWriter | output | Writer to save to. |
Save(ITripleStore, TextWriter, Boolean)
Saves a RDF Dataset as GZipped output.
Declaration
public 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. |
Save(ITripleStore, String)
Saves a RDF Dataset as GZipped output.
Declaration
public void Save(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to save. |
System.String | filename | File to save to. |
ToString()
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 raised when non-fatal output errors
Declaration
public event StoreWriterWarning Warning
Event Type
Type | Description |
---|---|
StoreWriterWarning |