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
| Improve this Doc View SourceParse(StreamReader)
Parses an Object from an Input Stream.
Declaration
T Parse(StreamReader input)
Parameters
Type | Name | Description |
---|---|---|
System.IO.StreamReader | input | Input Stream. |
Returns
Type | Description |
---|---|
T |
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.
Parse(TextReader)
Parses an Object from a Text Stream.
Declaration
T Parse(TextReader input)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | input | Text Stream. |
Returns
Type | Description |
---|---|
T |
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.
ParseFromFile(string)
Parses an Object from a File.
Declaration
T ParseFromFile(string file)
Parameters
Type | Name | Description |
---|---|---|
string | file | Filename. |
Returns
Type | Description |
---|---|
T |
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.
ParseFromString(string)
Parses an Object from a String.
Declaration
T ParseFromString(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data | String. |
Returns
Type | Description |
---|---|
T |
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.