Class BaseGZipResultsWriter
Abstract Base class for Results writers which generate GZipped output.
Inheritance
BaseGZipResultsWriter
Implements
Inherited Members
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseGZipResultsWriter : ISparqlResultsWriter
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
| Edit this page View SourceBaseGZipResultsWriter(ISparqlResultsWriter)
Creates a new GZipped Results writer.
Declaration
protected BaseGZipResultsWriter(ISparqlResultsWriter writer)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsWriter | writer | Underlying writer. |
Methods
| Edit this page View SourceSave(SparqlResultSet, TextWriter)
Saves a Result Set as GZipped output.
Declaration
public void Save(SparqlResultSet results, TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to save. |
TextWriter | output | Writer to save to. |
Save(SparqlResultSet, string)
Saves a Result Set as GZipped output.
Declaration
public void Save(SparqlResultSet results, string filename)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to save. |
string | filename | File to save to. |
Save(SparqlResultSet, string, Encoding)
Saves the result set to the specified file using the specified text encoding.
Declaration
public void Save(SparqlResultSet results, string filename, Encoding fileEncoding)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | The results set to save. |
string | filename | The path to the file to be written. |
Encoding | fileEncoding | The text encoding to use. |
ToString()
Gets the description of the writer.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Events
| Edit this page View SourceWarning
Event which is raised if non-fatal errors occur writing results
Declaration
public event SparqlWarning Warning
Event Type
Type | Description |
---|---|
SparqlWarning |