Class BaseGZipResultsWriter
Abstract Base class for Results writers which generate GZipped output.
Inheritance
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
| Improve this Doc View SourceBaseGZipResultsWriter(ISparqlResultsWriter)
Creates a new GZipped Results writer.
Declaration
protected BaseGZipResultsWriter(ISparqlResultsWriter writer)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsWriter | 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.
Methods
| Improve this Doc 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. |
System.IO.TextWriter | output | Writer to save to. |
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.
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. |
System.Text.Encoding | fileEncoding | The text encoding to use. |
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.
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. |
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 results
Declaration
public event SparqlWarning Warning
Event Type
Type | Description |
---|---|
SparqlWarning |
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.