Interface IObjectParser<T>
Interface for parsers that generate objects of some sort.
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface IObjectParser<T>
Type Parameters
Name | Description |
---|---|
T | Generated Object Type. |
Remarks
Primarily used as a marker interface in relation to MimeTypesHelper to provide a mechanism whereby parsers for arbitrary objects can be registered and associated with MIME Types and File Extensions.
Methods
| Edit this page View SourceParse(StreamReader)
Parses an Object from an Input Stream.
Declaration
T Parse(StreamReader input)
Parameters
Type | Name | Description |
---|---|---|
StreamReader | input | Input Stream. |
Returns
Type | Description |
---|---|
T |
Parse(TextReader)
Parses an Object from a Text Stream.
Declaration
T Parse(TextReader input)
Parameters
Type | Name | Description |
---|---|---|
TextReader | input | Text Stream. |
Returns
Type | Description |
---|---|
T |
ParseFromFile(string)
Parses an Object from a File.
Declaration
T ParseFromFile(string file)
Parameters
Type | Name | Description |
---|---|---|
string | file | Filename. |
Returns
Type | Description |
---|---|
T |
ParseFromString(string)
Parses an Object from a String.
Declaration
T ParseFromString(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data | String. |
Returns
Type | Description |
---|---|
T |