Class BaseGZipResultsWriter
Abstract Base class for Results writers which generate GZipped output.
Inheritance
System.Object
BaseGZipResultsWriter
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 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
public BaseGZipResultsWriter(ISparqlResultsWriter writer)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsWriter | writer | Underlying writer. |
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. |
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. |
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 which is raised if non-fatal errors occur writing results
Declaration
public event SparqlWarning Warning
Event Type
Type | Description |
---|---|
SparqlWarning |